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

feat: add support for /_gatsby/file/* redirects #305

Merged
merged 1 commit into from
Mar 2, 2022
Merged

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Mar 2, 2022

The Gatsby image CDN feature also supports proxying files via /_gatsby/file/.... Rather than proxying them, this PR implements them as a redirect for simplicity and performance.

To test, click this link and check that it redirects to Unsplash:

@netlify
Copy link

netlify bot commented Mar 2, 2022

✔️ Deploy Preview for netlify-plugin-gatsby-demo ready!

🔨 Explore the source changes: fa9453c

🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-gatsby-demo/deploys/621f96c83bd9090007f830d2

😎 Browse the preview: https://deploy-preview-305--netlify-plugin-gatsby-demo.netlify.app

@ascorbic ascorbic self-assigned this Mar 2, 2022
@ascorbic ascorbic requested a review from tiffafoo March 2, 2022 16:17
@kodiakhq kodiakhq bot merged commit d071712 into main Mar 2, 2022
@kodiakhq kodiakhq bot deleted the mk/file-redirect branch March 2, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants