nginx cache expire settings issue.Can anyone help?

Gregory Edigarov edigarov at qarea.com
Thu Dec 11 11:59:52 UTC 2014


you do not caching anything with proxy_pass alone.
you should use proxy_cache in conjunction.

On 12/11/2014 01:32 PM, anoopov wrote:
> Hi I am new to Nginx. I need to add expire -1 for my JSON files in the below
> urls
>
> https://siteaddress/foldername /default.htm#/dashboard/ui.json
>
>
> location /foldername {
> 	   index  default.html default.htm;
>         proxy_pass         http://siteaddress_eapp_entry;
>      }
>
>
> I have tried below syntax but still JSON files are caching
>
> location  \foldername \.(json)$ {
>                      expires -1;
>             }
>
> Please help anyone to solve my issue,Thanks in advance.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255425,255425#msg-255425
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list