cp replace command is changing the content type when updating the metadata for cache control #6887
-
Hi, I have a release task on my CI/CD environment which uses the AWS CLI. Before this command is executed I checked that all the Javascript files were with the correct content-type metadata that is application/x-javascript, but after the command the content-type changes to text/plain. My problem is, I would like to replace only the --cache-control metadata without touching the other ones. Is there a solution to this? Please give us a command that will add the metadata of cache control but will not replace the content type of any file files extensions are .js, .css, .br, .json which are in random order in the bucket. please suggest a solution soon |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Abhijeetkabra, Sorry to hear that you're having an issue. I think we've answered here (I just migrated the original issue to a discussion post): I'm going to mark this as a duplicate, and we can continue the conversation there if your issue is not resolved based on that conversation. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @Abhijeetkabra,
Sorry to hear that you're having an issue. I think we've answered here (I just migrated the original issue to a discussion post):
#6895
I'm going to mark this as a duplicate, and we can continue the conversation there if your issue is not resolved based on that conversation.