Serve static assets with an efficient cache policy #266

Closed
opened 2 years ago by j285he · 3 comments
j285he commented 2 years ago
Collaborator

A long cache lifetime can speed up repeat visits to your page. Learn more.

A long cache lifetime can speed up repeat visits to your page. [Learn more.](https://web.dev/uses-long-cache-ttl/?utm_source=lighthouse&utm_medium=devtools)
j285he added this to the Post launch milestone 2 years ago
j285he added the
Performance
label 2 years ago
Collaborator

@merenber could probably shed some light about why we are/aren't doing this.

@merenber could probably shed some light about why we are/aren't doing this.
Owner

A few months ago, I set Cache-Control: no-cache on the main, news, and events pages because they were being cached by the browser and updates weren't showing up quickly enough.

We can set a more relaxed cache policy on the static assets once the website is deployed.

A few months ago, I set `Cache-Control: no-cache` on the main, news, and events pages because they were being cached by the browser and updates weren't showing up quickly enough. We can set a more relaxed cache policy on the static assets once the website is deployed.
Owner

@a3thakra @j285he
I set Cache-Control: public, max-age=604800 on pictures, and Cache-Control: no-cache on everything else.

@a3thakra @j285he I set `Cache-Control: public, max-age=604800` on pictures, and `Cache-Control: no-cache` on everything else.
a3thakra closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: www/www-new#266
Loading…
There is no content yet.