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

Add webp and avif exceptions to CF request function #313

Conversation

MarcEspiard
Copy link
Contributor

Hi,

AWS has updated their list of extensions excluded from redirections in SPA, this PR updates the list to match AWS' (adding the webp extension) and also adds the avif extension.

This allows developers using lift's SPA construct to use .webp and .avif images. Currently it will redirect to /index.html and not display the image.

See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#redirects-for-single-page-web-apps-spa

@MarcEspiard MarcEspiard changed the title Add-webp-and-avif-exception-to-request-function Add webp and avif exceptions to CF request function Mar 2, 2023
@fredericbarthelet fredericbarthelet merged commit de59ab3 into getlift:master Mar 3, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants