This is to enable versioning of various files, so you can have long
“Expires” on them and still update them as needed while retaining the
old ones, if needed.
I want to deliver static files directly from nginx, so I created this:
This works in most cases, except for files which already have a version
number of some sort.
Namely:
coda-slider.1.1.1.1452703531.js
and two others from the jquery framework.
What’s wrong with my nginx rewrite?
Because in apache, the rewrite rule works as intended.
This is to enable versioning of various files, so you can have long
“Expires” on them and still update them as needed while retaining
the old ones, if needed.
I want to deliver static files directly from nginx, so I created this:
Not exactly sure about the notation in nginx but for regexp what
about:
What’s wrong with my nginx rewrite?
Because in apache, the rewrite rule works as intended.
I see two main differences there:
Your apache RewriteRule has [L] on the end. Your nginx rewrite does
not. Possibly you want “break” – Module ngx_http_rewrite_module
Your apache RewriteRule is protected by RewriteCond. Your nginx rewrite
is not. Possibly something involving try_files or error_page and a named
location for fallback could achieve the same effect.
This is to enable versioning of various files, so you can have long
“Expires” on them and still update them as needed while retaining
the old ones, if needed.
I want to deliver static files directly from nginx, so I created this:
Not exactly sure about the notation in nginx but for regexp what
about: