php - How to removes/clear files from cache (Added Expires Headers in htaccess file) -


this .htaccess file in have added expiry headers archive caching , page speed in website.

<ifmodule mod_expires.c> # enable expirations expiresactive on  # default directive expiresdefault "access plus 1 month" # favicon expiresbytype image/x-icon "access plus 1 year" # images expiresbytype image/gif "access plus 1 month" expiresbytype image/png "access plus 1 month" expiresbytype image/jpg "access plus 1 month" expiresbytype image/jpeg "access plus 1 month" # css expiresbytype text/css "access plus 1 month" # javascript expiresbytype application/javascript "access plus 1 year" </ifmodule> 

but after days need modifications in files, modified files, not single files reflecting due expiry headers. time old files. decided remove code given above .htaccess. after removing code there no result. have clear browser data many times, no result.

so want know how clear cache browser/server cached setting expiry headers.

my website running on apache+php server.

ah yes, have gone through myself! used following in .htaccess, place @ top:

expiresactive on expiresdefault a1 header append cache-control must-revalidate 

what force cache re-validate every time accesses it.

when access first time after putting in code. refresh page , should push re-validation.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -