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

adapter-netlify: Exclude static files from edge function #11999

Closed
Sylfled opened this issue Mar 17, 2024 · 3 comments
Closed

adapter-netlify: Exclude static files from edge function #11999

Sylfled opened this issue Mar 17, 2024 · 3 comments

Comments

@Sylfled
Copy link

Sylfled commented Mar 17, 2024

Describe the problem

Currently, requests to static files are intercepted by the edge function as every other request is as well. If I understand the situation correctly, this potentially prevents Netlify's caching efforts.

Describe the proposed solution

Requests to static files could be excluded from the edge function by adding an excludedPattern to the manifest.json under .netlify/edge-functions. Looking at the source code, it seems like excluding them has already been attempted with negative lookaheads, but that solution was discarded.

Alternatives considered

No response

Importance

would make my life easier

Additional Information

Different from #11998

@Sylfled
Copy link
Author

Sylfled commented Mar 18, 2024

One downside could be that it would make #3194 impossible.

@Sylfled
Copy link
Author

Sylfled commented Mar 20, 2024

Also related: #10707

@Sylfled
Copy link
Author

Sylfled commented Apr 23, 2024

The edge function already returns without a result for static files.

@Sylfled Sylfled closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants