in6pio / Incipio

ERP pour Junior-Entreprises.
http://incipio.fr
GNU Affero General Public License v3.0
5 stars 5 forks source link

Disable Nginx cache #27

Closed theofidry closed 9 years ago

theofidry commented 9 years ago

In /etc/nginx/site-enable/default:

location / {
        index       app_dev.php;
        try_files   $uri @rewriteapp;
        add_header  Cache-Control private; # Add header
    }

Also in /etc/nginx/nginx.conf:

sendfile off;

See http://serverfault.com/questions/269420/disable-caching-when-serving-static-files-with-nginx-for-development for more information.