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

How to specify "Cache-control" max-expires for objects #42

Open
vladejs opened this issue Oct 13, 2017 · 6 comments
Open

How to specify "Cache-control" max-expires for objects #42

vladejs opened this issue Oct 13, 2017 · 6 comments

Comments

@vladejs
Copy link
Contributor

vladejs commented Oct 13, 2017

Hi,
when deploying a site, I enable cloudfront for them with the option to redirect http -> https requests.

Problem is that the 301 redirect is permanently cached in chrome. Surfing the web I found that settings "Cache-control"/max-expires headers to S3 objects avoids the caching, so I would like to know if that's possible with this library

@nick-benoit14
Copy link
Collaborator

The original maintainer did most of the work surrounding cloudfront. I am not as knowledgable. I am a little bit unsure of what you are asking exactly. Ae you wanting to know if you can set custom Cache-Control for pages on your site?

@vladejs
Copy link
Contributor Author

vladejs commented Oct 13, 2017

Exactly, yes. Put cache-control to objects uploaded to S3 (nothing to do with cloudfront, I was just explaining why I need to set the Header)

@nick-benoit14
Copy link
Collaborator

I don't believe there is a way to do that currently. That would be a good feature though.

@vladejs
Copy link
Contributor Author

vladejs commented Oct 13, 2017

do you know how / have the time to implement it?

@nick-benoit14
Copy link
Collaborator

I am not 100% certain that s3 supports it. I probably do not have time to implement it in a timely manner. I would like to add it down the road however.

@vladejs
Copy link
Contributor Author

vladejs commented Oct 13, 2017 via email

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