Chrome is sending Cache-control:no-cache header

。_饼干妹妹 提交于 2020-01-24 02:27:04

问题


We have configured nginx server to add cache control header to public and expiration time to 1month. But when we make a request from brower, client is adding Cache-control:no-cache header. Because of this everytime, it is downloading the content fresh instead of serving the cached version.

how can i make to cache static files?

If I fire the request from terminal, cache-control header added by server is visible in response headers.

Check the below screenshots :


回答1:


You probably have the Disable cache (while DevTools is open) option selected in the Preferences panel of DevTools.

It's very easy to forget about it! that's what happened to me anyway. Uncheck the option and try again.



来源:https://stackoverflow.com/questions/42719038/chrome-is-sending-cache-controlno-cache-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!