Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Disable Cache for static files (css, js, etc.) in the DEV system

$
0
0
Hi,

I would like to disable the cache function for static files into the dev system, but I can't find the right parameter or systemfile to change this.

I've try to change in the /etc/nginx/site-available/DOMAIN/
location ~\.(css|js)$ {
expires epoch;
}
nothing happens
location ~\.(css|js)$ {
expires 0;
}
nothing happens
location ~\.(css|js)$ {
expires off;
}
notting happens
location ~\.(css|js)$ {
add_header Cache-Control "max-age=0, public, must-revalidate, proxy-revalidate";
}
nothing happens
location ~\.(css|js)$ {
add_header Cache-Control "no-cache";
}
etc ....

please can someone of you help me? currently I am just freak out ...

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>