SSL Problem: Client Side Caching (JS/CSS)

被刻印的时光 ゝ 提交于 2019-12-10 00:30:35

问题


It appears that SSL causes a browser (at least FF 3.0.14) to re-request unchanged JavaScript and CSS every time, and doesn't cache either resource at all. That's a significant bandwidth increase in my case (about 80 KB instead of ~3 KB per request).

How can I enforce/promote caching of my JS/CSS files the regular way on the client browser?


回答1:


Try serving the Javascript from a non-SSL domain, see if that does the trick.



来源:https://stackoverflow.com/questions/1448065/ssl-problem-client-side-caching-js-css

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