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

Expiration Header #167

Open
ishields opened this issue Feb 10, 2024 · 1 comment
Open

Expiration Header #167

ishields opened this issue Feb 10, 2024 · 1 comment

Comments

@ishields
Copy link

ishields commented Feb 10, 2024

I was curious whether it would make sense to add a gem configuration of specifying an expiration header? In a lot of use cases these urls do not change so specifying an expiration at a header level would improve performance. If you use a CDN like cloudflare these headers can be used to cache at the CDN level too so it doesn't ever hit the app server.

Rails expires_in header documentation

@fschwahn
Copy link
Collaborator

Sounds sensible, can you open a PR with your proposed changes?

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

No branches or pull requests

2 participants