How to prevent request that returns 304

前端 未结 4 753
栀梦
栀梦 2020-11-30 23:59

When does a browser NOT make a request to the server for a file?

In other words, I have a JavaScript file being served. Its HTTP response header has an ETag

4条回答
  •  暖寄归人
    2020-12-01 00:27

    There is a rule that setting an Expires header more than one year in the future violates the HTTP 1.1 RFC.

    So, HTTP response header here is invalid (Expires: Tue, 19 Jan 2038 03:14:07 GMT). Fixing this may solve the problem!

提交回复
热议问题