JS file cache status is always expired

My JS files cache status is alway expired. I have tried purging the files but it is of no help. I am not sure what is the issue. All the other pages are correctly cached. I have set page rules to cache everything

Response Headers:

  1. alt-svc:

h3=":443"; ma=86400, h3-29=":443"; ma=86400

  1. cache-control:

public, max-age=31536000

  1. cf-cache-status:

EXPIRED

  1. cf-ray:

71840efe3dfc8596-BOM

  1. content-encoding:

br

  1. content-type:

application/javascript; charset=UTF-8

  1. date:

Wed, 08 Jun 2022 19:33:20 GMT

  1. etag:

W/“89011-18143d575ef-gzip”

  1. expect-ct:

max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct

  1. last-modified:

Wed, 08 Jun 2022 15:01:11 GMT

  1. nel:

{“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}

  1. report-to:

{“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v3?s=nmbmIrnfkgJwRXop4jNUVE21wDcRRBO%2F27wIEII39%2BxukzJ5bLduX2x7l4u9LuPGWUR1%2BhO9BHZlVqKS8fXeiJ641OCv61S8x07awf7H8hN0z14Ti9J%2BTT2NwazrC6TeFu4ogH9xfAZUfAeYnJsWPul2sg%3D%3D"}],“group”:“cf-nel”,"max_age”:604800}

  1. server:

Cloudflare

  1. vary:

Origin,Accept-Encoding

  1. x-powered-by:

Express

Request Headers:

  1. :authority:
  1. :method:

GET

  1. :path:

/static/js/10.7ba4081f.chunk.js

  1. :scheme:

https

  1. accept:

6./*

  1. accept-encoding:

gzip, deflate, br

  1. accept-language:

en-US,en;q=0.9

  1. cache-control:

no-cache

  1. cookie:

_ga=GA1.2.1759611059.1647452609; G_ENABLED_IDPS=google; G_AUTHUSER_H=0; _gid=GA1.2.1375016284.1654104143; __gads=ID=6e67a14c5ab61a31-2262d746c9d300aa:T=1654441009:RT=1654441009:S=ALNI_MYX78FxO5ckiMZaCEOh_ORRPaJMfg; _gat_UA-80427534-3=1; __gpi=UID=000006607d983365:T=1654441009:RT=1654716774:S=ALNI_MbVu0eWQglWF0peEOrdRMWSt0Rz5g

  1. pragma:

no-cache

  1. referer:
  1. sec-ch-ua:

" Not A;Brand";v=“99”, “Chromium”;v=“102”, “Google Chrome”;v=“102”

  1. sec-ch-ua-mobile:

?0

  1. sec-ch-ua-platform:

“macOS”

  1. sec-fetch-dest:

script

  1. sec-fetch-mode:

no-cors

  1. sec-fetch-site:

same-origin

  1. user-agent:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Cache status expires means it was served from cache but it already was expired. Hence your Edge TTL must be very low, of you have origin cache control are forcing Cloudflare to just cache it for a very short amount of time.

The Edge TTL cache be set by PageRules, so please have a look at them, if some of them are matching the URL of your CSS file.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.