httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: [users@httpd] How to force browsers doesn't use cache
Date Mon, 16 Nov 2015 22:55:06 GMT

On 11/16/15 3:52 PM, Pete Houston wrote:
> On Mon, Nov 16, 2015 at 06:19:37PM -0200, Ronaldo Luiz de Carvalho wrote:
>> There are a way to setting apache in a way to force the users site browsers
>> doesn't use their cache?
> You can use the Header directive to set the appropriate value of the
> Cache-Control header.


Plus the "Pragma" header for ancient clients, if you want.

This is how we do it:

        Header set Cache-Control "no-cache, no-store, must-revalidate"
        Header set Pragma "no-cache"
        Header set Expires 0

Make sure you don't overdo this... if you have .css, .js files, etc.
that *should* be cached, don't let this apply to them.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message