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

Change cache-control max-age default value for improve long live assets caching #182

Merged
merged 1 commit into from
May 10, 2022

Conversation

cambad
Copy link
Contributor

@cambad cambad commented May 10, 2022

Hi 👋🏽

This pull request is a reflection of the previous one: #181.

Assets served by Vapor will always have a unique URL for them, we should be able to set the maximum expiration time (1 year) which will tell the CDN (CloudFront) and the user browser to keep the asset for a long, long time, saving bandwidth and energy. 😄

This is based on recommendations from https://web.dev/http-cache/#versioned-urls 🚀

Thanks in advance 😄

@taylorotwell taylorotwell merged commit 9e93d9e into laravel:master May 10, 2022
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.

2 participants