You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
Today, cacheable, unchanged resources are not stored in the browser cache - regardless of the Cache-Control response headers that are applied in Workers. In other words, it's impossible to get a 304 Not Modified response (it is, however, possible to get Chrome to return the resource from memory cache).
There are two reasons for this:
Resources stored in Cache API do not include a Last-Modified or Etag response header
The cacheKey tied to each resource would strip the If-Modified-Since or If-None-Match header before querying the cache API (right now, the browser wouldn't even send these headers because of the first reason)
Solutions
Coming soon
Cherry, thomkrupa, chadzhao, simplenotezy and dtruffautdtruffaut