-
Notifications
You must be signed in to change notification settings - Fork 87
feat: support custom response headers on images served via IPX #1515
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
Conversation
includes the changes needed to support custom response headers
this version contains changs for supporting custom response headers
✅ Deploy Preview for next-hp-edge-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for ep-custom-response-headers-with-ipx-changes ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-edge-middleware ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-plugin-rsc-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for nextjs-plugin-custom-routes-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
I'm looking at the request of e.g. https://deploy-preview-1515--netlify-plugin-nextjs-demo.netlify.app/_next/image/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnetlify%2Fnetlify-plugin-nextjs%2Fmain%2Fnext-on-netlify.png&w=640&q=75, but there is no
|
@nickytonline That's a 304 Not Modified response though, so you wouldn't expect it to have all the same headers. Try the request without the cache and check the headers for a 200 response. It looks good to me: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment but looks good otherwise. Thanks! 🎉
Argh. I switched to Arc browser the other day and forgot to change my dev tool settings to disable cache. Thanks @ascorbic! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🚀
I think Kodiak should be able to resolve these conflicts if you set automerge. |
….com:netlify/netlify-plugin-nextjs into ep/support-custom-response-headers-on-images
This PR currently has a merge conflict. Please resolve this and then re-add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Co-authored-by: Matt Kane <[email protected]>
Summary
Adds support for custom response headers to be added to images served with IPX
Test plan
?url
)Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
netlify/netlify-ipx#51
https://github.com/netlify/pod-ecosystem-frameworks/issues/148
Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was published correctly.