Check the browser caching headers of a file
check browser caching headers | show cache-control header curl | is expires header set | pagespeed serve static assets with an efficient cache policy | curl | cache | headers | performancecurl -sI https://example.com/wp-includes/css/dist/block-library/style.min.css | grep -iE "^(cache-control|expires|etag|last-modified|age):"Requests the headers of a URL and filters out the cache-related ones. For static files such as CSS, JS and images, Cache-Control should contain a long max-age, whereas HTML pages are usually cached briefly or not at all. Without these headers, the browser reloads the file on every visit or at least revalidates it.
Note: On Plesk with the nginx proxy, the option for caching static files determines whether nginx or Apache sets the headers.
Also searched as
- check browser caching headers
- show cache-control header curl
- is expires header set
- pagespeed serve static assets with an efficient cache policy