Hi,
When apache or tomcat serves static files, they add "Last-Modified" but no Expires nor Cache-Control.
In that cas browsers are using heuristics to know how long the file must be cached.
(
http://stackoverflow.com/questions/14345898/what-heuristics-do-browsers-use-to-cache-resources-not-explicitly-set-to-be-cach )
Workaround for apache >= 2.4 : globally add the following on all apaches:
Header setifempty Cache-Control "max-age=86400" "expr=-n resp('Last-Modified') && -z resp('Expires')"
Anyway, AFAIK best solution for CAS is to use themes and versionize theme name (cache busting).
cu
On 24/10/2016 23:00, Tom Poage wrote:
> Don’t recall seeing cache-control in CAS itself (doesn’t mean it’s not there). We've been doing the following in httpd:
>
> <LocationMatch"\.(css|gif|jpg|png|js)$">
> <IfModulemod_expires.c>
> ExpiresActiveOn
> ExpiresByTypetext/css "access plus 1 hour"
> ExpiresByTypeimage/gif "access plus 1 hour"
> ExpiresByTypeimage/jpeg "access plus 1 hour"
> ExpiresByTypeimage/png "access plus 1 hour"
> ExpiresByTypetext/javascript "access plus 1 hour"
> ExpiresByTypeapplication/javascript "access plus 1 hour"
> </IfModule>
> </LocationMatch>
>
>
> Tom.