Well, unfortunately this is not working...
http://example.com/style.css?ver=4.3
http://example.com/jquery-migrate.min.js?ver=1.2.1
biazus Wrote:
---
> Please try to remove $ in the end of the expression:
>
> something like this:
>
> location
Thank you, Biazus!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,261338,261373#msg-261373
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Following nginx configuration in a server block can cache js and css files
with "js" or "css" as the end of the url.
location ~ .*\.(js|css)?$ {
expires 7d;
}
But it can't cache request such as:
http: //example.com/jquery.js?ver=1.11.3&build=1
or
http: /
return 503;
}
location /swaplimit {
return 503;
}
if ( $query_string ~* ".*[\;'\<\>].*" ){
return 404;
}
}
### Following are the logs
I can not open any link except http://example.com/readme.txt with following
server block.
Any tips?
server {
listen 80 default_server; ## listen for ipv4; this line is default
and implied
listen [::]:80 default_server ipv6only=on; ## listen for ipv6
server_name example.co