My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

nginx caching

pramod's photo
pramod
·Apr 5, 2017

Im using nginx as my webserver and serving a static folder which consists of my static assets like the html,css and js scripts. And proxying my api calls to an iis server serving data through rest api, I have enable the last-modified and etag header in my nginx config and also proxy_cache still in the browser i don't get a 304 for my static assets and the file is every time looked up from the server and not being served from cache. Any boilerplate nginx config for serving static assets and reverse proxying would be of great help.