stefanoros
CDCloudflare Developers
•Created by stefanoros on 3/24/2025 in #workers-help
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?1 replies