apache - Exclude directory from browser caching with .htaccess -
i have .htaccess file handles browser caching. set rules file extensions. how can modify following snippet exclude specific directory browser caching?
<filesmatch "\.(gif|png|jpg|js|css|ico|woff|eot|svg|ttf)$"> header set cache-control "max-age=2592000, public, must-revalidate" header unset last-modified </filesmatch> i there way totally forbid caching in directory?
you can try overwrite parent cache function. replace htaccess file under desired folder , set cache 1 sec. worked me.
expiresactive on expiresdefault a1 header append cache-control must-revalidate
Comments
Post a Comment