Re: How to cache js/css request containing a question mark?

2015-09-01 Thread log
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

Re: How to cache js/css request containing a question mark?

2015-09-01 Thread log
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

How to cache js/css request containing a question mark?

2015-08-31 Thread log
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: /

Re: What cause the error for this http/https wordpress configuration file?

2015-08-27 Thread log
return 503; } location /swaplimit { return 503; } if ( $query_string ~* ".*[\;'\<\>].*" ){ return 404; } } ### Following are the logs

What cause the error for this http/https wordpress configuration file?

2015-08-27 Thread log
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