Mailing List Archive

RT 4.2 missing Cache-Control header for static content
Hi,

just want to drop you a note that content which is served direct from
share/static/ don't get an Cache-Control header.

Maybe we should include in the apache config this:
<IfModule mod_headers.c>
<Location /static/>
Header set Cache-Control 'max-age=2592000, public'
</Location>
</IfModule>


Chris
Re: RT 4.2 missing Cache-Control header for static content [ In reply to ]
On Wed, Jan 22, 2014 at 11:14:19AM +0100, Christian Loos wrote:
> just want to drop you a note that content which is served direct from
> share/static/ don't get an Cache-Control header.

Would you please forward this in to rt-bugs.
I suspect we actually want a Plack Middleware, but I'm not sure which
one off the top of my head. We'll go have a look for a relevant one.

Thanks for the report, I'd seen something around this, but assumed it
was a bug in my setup and hadn't tested with a vanilla RT.

-kevin

> Maybe we should include in the apache config this:
> <IfModule mod_headers.c>
> <Location /static/>
> Header set Cache-Control 'max-age=2592000, public'
> </Location>
> </IfModule>