Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How can I Control the Cache for a Subpage?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 449
    Answer it

    I am starting on web-security and I have to control the cache on the portal, this portal has many urls. I understand that I need to set the header with this:



    response.setHeader("Cache-Control","no-cache,no-store,must-revalidate"); response.setHeader("Pragma", "no-cache"); But my question is: The code above is valid for all the urls that I want to controling (You know the cache) or how I set this attribute for all the urls or for a url in specific?.



    Adding Comment: I meant the urls belong to the main portal, ie the main url is [example.com] and the "other" urls are [example.com/another_url] and [example.com/this_is_another_url] and I want to control the cache of the 3 urls above. how can I control the cache for all of them?, thanks in advance
     

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: