Closed Petri-Oosthuizen closed 5 months ago
This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!
Thanks for opening this issue. Pattern ranges like the one in your example are supported now.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
This issue has been automatically locked.
Before opening, please confirm:
Amplify Hosting feature
Custom headers
Is your feature request related to a problem? Please describe:
Custom HTTP Pattern Not Matching Multiple Font Extensions in Amplify
Describe how you'd like this feature to work
Description:
I'm encountering an issue with custom headers in AWS Amplify when configuring them for multiple font file extensions using a pattern in the
customHttp.yml
file. While setting direct headers for individual extensions works, using a pattern with curly braces ({}
) to match multiple extensions (e.g.,**/*.{woff,woff2,ttf,otf,eot}
) doesn't seem to apply the headers as expected.Expected Behavior:
The custom header configuration should match files with any of the specified font extensions (woff, woff2, ttf, otf, eot) within the project directory structure and apply the defined headers (e.g.,
Cache-Control
).Actual Behavior:
The custom header is only applied to files with the exact extension listed first in the pattern (e.g., only
.woff
files in this case).Steps to Reproduce:
customHttp.yml
file to the project root directory.customHttp.yml
file, replacing the value with your desired caching settings:.woff2
,.ttf
,.otf
, or.eot
).Summary:
[woff|woff2|ttf|otf|eot]
) within the braces, but the behavior seems to be the same.**/*.woff
,**/*.woff2
) works as expected.Questions:
customHttp.yml
file?Thank you for your assistance!