-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[codepipeline-actions] max-age header not set correctly for s3 deploy action #8774
Labels
@aws-cdk/aws-codepipeline-actions
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
p1
Comments
Thanks for opening the issue @nonken ! Any chance you can open us a PR fixing this? https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md#getting-started 😃 |
@skinny85 I should be able to get to this sometime this week yep. Especially for a former colleague 🤗 |
@skinny85 I have opened a PR, would be amazing if this can go in as it is breaking the interwebs 😄 |
mergify bot
pushed a commit
that referenced
this issue
Jul 7, 2020
…he control (#8864) The `max-age` and `s-maxage` header properties were assigned using a `:` instead of `=`. This change fixes the assignment to be according to the spec. Also added missing test for the `s-maxage` property. Fixes #8774 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
🤗 Wohoo!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-codepipeline-actions
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
p1
The Cache-Control max-age key value gets set wrongly when using an S3DeploymentAction.
Current
max-age: Number
Expected
max-age=Number
Thanks to the excellent and super fast triage from @mikesherov 🙏.
https://twitter.com/mikesherov/status/1277320422791528457
The faulty line can be found here:
aws-cdk/packages/@aws-cdk/aws-codepipeline-actions/lib/s3/deploy-action.ts
Line 33 in 8d5b801
The same applies for the
s-maxage
property:aws-cdk/packages/@aws-cdk/aws-codepipeline-actions/lib/s3/deploy-action.ts
Line 35 in 8d5b801
Also see here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
Reproduction Steps
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: