Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Cache control headers in response
amitsb
Hi,
I have a requirement where text/html content type files served by LSDS should not be cached by the browser (on clicking back button user should not be shown the cached page in the browser) for which I need the following to be added in the response header of the files of type text/html-
cache-control:no-cache, no-store, must-revalidate
I would appreciate if anybody can let me know how can this be configured in livesite.
Thanks in advance.
Find more posts tagged with
Comments
Rick Poulin
Easiest way, if your LSDS is proxied by a web server like Apache or IIS, is to set this in the web server (fairly painless configuration, given you're hardcoding it for all pages). If you absolutely need to do this in LS, then you're looking at using a PreController class and manipulating the response object to add that header.