browser adds If-Modified-Since header and cache.match func (from Cache API) doesn't run

Hello! Following this basic tutorial: https://developers.cloudflare.com/workers/examples/cache-api/ When i reload a URL in an incognito tab, the browser adds If-Modified-Since header to the request. The cache is automatically hit without running the worker and executing the cache.match(cacheKey); function. Is this behaviour normal?
Cloudflare Docs
Using the Cache API · Cloudflare Workers docs
Use the Cache API to store responses in Cloudflare's cache.
From An unknown user
From An unknown user
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?