EN, Change language
Englishالعربية
BH-107

Static files carry Expires or Cache-Control headers.

The requirement

Static files carry Expires or Cache-Control headers.

Why it matters to users

Without cache headers the browser downloads the logo, fonts and styles again on every page the citizen opens. Each step of a transaction becomes slower on mobile data.

How to fix it

Send a long-lived Cache-Control header for CSS, JavaScript, images and fonts, and put a version in their file names so they refresh when changed. Then scan again.

How we measure it

Cache headers on same-site CSS, JS, images and fonts, each file once.

Its official source

Related rules

Cache headers on static files · Bahrain BH-107 | xfix