Serve static assets with an efficient cache policy #266

Closed
opened 2021-09-01 23:06:03 -04:00 by j285he · 3 comments
Member

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 2021-09-01 23:06:03 -04:00
j285he added the
Performance
label 2021-09-01 23:06:03 -04:00
Owner

@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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: www/www-new#266
No description provided.