Hi all...
Auto-update. I found this:
# http://blog.bripkens.de/2012/03/nginx-cache-busting/
server {
# ...
location ~* ^/static/(\w+)/([^/]+)_\d+\.(js|css|png|jpg|jpeg|gif|ico)$ {
alias /srv/www/static/$1/$2.$3;
add_header Vary Accept-Encoding;
expires max;
}
# ...
}
The problem is that if /srv/www/static/$1/$2.$3 does not exist, I lose the fallback to @apache ...
Any other idea? :?
Thanks for any help.
Auto-update. I found this:
# http://blog.bripkens.de/2012/03/nginx-cache-busting/
server {
# ...
location ~* ^/static/(\w+)/([^/]+)_\d+\.(js|css|png|jpg|jpeg|gif|ico)$ {
alias /srv/www/static/$1/$2.$3;
add_header Vary Accept-Encoding;
expires max;
}
# ...
}
The problem is that if /srv/www/static/$1/$2.$3 does not exist, I lose the fallback to @apache ...
Any other idea? :?
Thanks for any help.