Serve static assets with an efficient cache policy #266
Labels
No Label
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
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…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A long cache lifetime can speed up repeat visits to your page. Learn more.
@merenber could probably shed some light about why we are/aren't doing this.
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.
@a3thakra @j285he
I set
Cache-Control: public, max-age=604800
on pictures, andCache-Control: no-cache
on everything else.