Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added optional cache-control header to static config#1602

Open
indykoning wants to merge 1 commit intostatamic:5.x from
indykoning:cache-control-header
Open

Added optional cache-control header to static config #1602
indykoning wants to merge 1 commit intostatamic:5.x from
indykoning:cache-control-header

Conversation

@indykoning
Copy link

@indykoning indykoning commented Feb 3, 2025

Since we're statically serving these files anyways we can instruct the browser and a proxy (like cloudflare) to cache these files (in the examples 2 minutes with an hour to revalidate before it must serve directly from the server)

Note: Cloudflare will by default not cache pages ever, a cache rule can be created to respect the cache-control header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /