304 Not Modified issue

前端 未结 3 563
囚心锁ツ
囚心锁ツ 2021-01-07 17:38

Sorry for the probably wrong title. I am writing some code to handle If-Modified-Since and If-None-Match requests as part of caching. Everything works perfect except for tha

3条回答
  •  粉色の甜心
    2021-01-07 17:58

    Finally solved this bug. Gzip was the culprit. Since I was gzipping the responses to If-Modified-Since and If-None-Match requests too, gzip was adding a few bytes (kind of a gzip header) to the response. Now I have stopped gzipping responses to If-Modified-Since and If-None-Match requests, and it works like a charm.

提交回复
热议问题