[opencms-dev] Cache HTTP header
Ladislav Kulhanek
ladislav.kulhanek at gmail.com
Tue Jul 30 16:28:02 CEST 2013
Hello,
my OpenCMS 8.5.1 adds Expires and cache-control HTTP headers to
response to static resources as css, js etc. Headers say that resource
can be cached for 24 hours. Resources are then cached in our http
proxy cache and when user change the resource in OpenCMS, proxy still
returns the old one. Is it possible to switch off this feature?
I have found the place in source code, where the headers are added -
CmsFlexController.setDateExpiresHeader(). I commented it, by I don't
think it's the best solution.
Does anybody know the purpose of this method? I think it effectively
should not be there. User/Admin must know, how long a resource can be
cached. Set up a 24 hours can cause a problem.
Thanks for your help.
Ladislav
More information about the opencms-dev
mailing list