-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
ESI renderer assumes current application is the target of the include #39130
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
Comments
The builtin ESI implementation in HttpCache does not support external includes, only internal ones. For external ESI fragments, you will need to use Varnish (or another ESI proxy) |
OK, then this is a feature request rather than a bug report, but this isn't mentioned anywhere in the docs. |
I don't think that we want to reimplement Varnish. I'd vote for "won't fix". |
I suggest opening an issue in the docs repo to improve the doc on that topic. And indeed, for HttpCache, I'd vote for "won't fix" as well. |
Thank you for this suggestion. |
Could I get an answer? If I do not hear anything I will assume this issue is resolved or abandoned. Please get back to me <3 |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Symfony version(s) affected: 5.1.8
Description
ESI rendering sounds great in theory: I can work without an edge cache in development because Symfony will resolve the include by itself. However, calling out to an external resource does not work.
How to reproduce
{{ render_esi('https://example.com/foo') }}
will error with:Despite the fact that
example.com
has nothing to do with our application, it ignores the hostname and just assumes the path can be found within our application.The text was updated successfully, but these errors were encountered: