Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: send maxAge > 0 #1159

Merged
merged 1 commit into from
Sep 9, 2023
Merged

refactor: send maxAge > 0 #1159

merged 1 commit into from
Sep 9, 2023

Conversation

mark86092
Copy link
Contributor

ref: https://expressjs.com/en/api.html#express.static

since razzle build static files are immutable, add maxAge header to cache them

also, https://developers.cloudflare.com/cache/concepts/default-cache-behavior/ cloudflare suggest how static file will be cached

@mark86092 mark86092 merged commit d4364b7 into goodjoblife:master Sep 9, 2023
7 checks passed
@mark86092 mark86092 deleted the cache-control branch September 9, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant