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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -