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.