Chrome doesn't cache images/js/css

后端 未结 6 1854
旧时难觅i
旧时难觅i 2020-11-27 03:23

When Chrome loads my website, it checks the server for updated versions of files before it shows them. (Images/Javascript/CSS) It gets a 304 from the server because I never

6条回答
  •  忘掉有多难
    2020-11-27 03:46

    What do your request headers look like?

    Chrome will set max-age:0 on the request's Cache-Control header if you press Enter in the location bar. If you visit your page using a hyperlink, it should use the cache, as expected.

提交回复
热议问题