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)