Welcome! Log In Create A New Profile

Advanced

nginx cache expire settings issue.Can anyone help?

December 11, 2014 06:32AM
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.
Subject Author Posted

nginx cache expire settings issue.Can anyone help?

anoopov December 11, 2014 06:32AM

Re: nginx cache expire settings issue.Can anyone help?

Gregory Edigarov December 11, 2014 07:02AM

Re: nginx cache expire settings issue.Can anyone help?

Maxim Dounin December 11, 2014 08:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready