You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working and developing locally I want the cache off. I want to make a change to my views and see my changes instantly.
But in production I want caching enabled, and also use ESI includes.
Problem being when working locally with cache off the ESI tags are not parsed.
I'm also using Varnish. So what I'd like to get is
Local: Caching off, ESI tags parsed to HTML as there is no local Varnish
Production: Caching on, ESI tags left alone so Varnish can handle them.
Any help would be appreciated.
Is this package suitable for my need, or should I write my own to handle ESI. Thanks.
The text was updated successfully, but these errors were encountered:
I don't have a lot of experience with Varnish. Do you need this package when you have Varnish?
Or do you just want to use this package locally instead of Varnish?
So only make it public when not in dev mode, so it won't be cached (but ESI will be parsed). (Or other way around, make it private when you are in dev)
You can also add the the ServiceProvider only to app/config/local/app.php, so it won't get loaded on production:
Yeah I'd already forked it to try and get ESI to work with caching disabled. Possibly more work than I initially thought.
Right now I think I only need this package as it helps with the setting of the cache headers. And parsing of ESI when running outside of Varnish.
I may try to add this as a PR, or create a separate package just to handle ESI parsing.
Will keep you updated
When working and developing locally I want the cache off. I want to make a change to my views and see my changes instantly.
But in production I want caching enabled, and also use ESI includes.
Problem being when working locally with cache off the ESI tags are not parsed.
I'm also using Varnish. So what I'd like to get is
Local: Caching off, ESI tags parsed to HTML as there is no local Varnish
Production: Caching on, ESI tags left alone so Varnish can handle them.
Any help would be appreciated.
Is this package suitable for my need, or should I write my own to handle ESI. Thanks.
The text was updated successfully, but these errors were encountered: