Comments (4)
I have the same issue.
When I include esi tag, middleware parses it, but the answer for esi is the index page.
If index page has esi tag initially, than I get infinite loop of rendering the same page again and again.
I tried to debug, and I found out that Symfony's HttpCache creates a subrequest with the right url (from esi tag), but the answer for this subrequest is index page. But if I try to open this esi-url in new tab I get the right answer.
from laravel-httpcache.
I can confirm this issue. A simple test, like
Route::get('esi-get', function () {
return 'esi content';
});
Route::group(['middleware' => ['httpcache', 'ttl:300']], function () {
Route::get('esi-test', function () {
return '<div><esi:include src="http://localhost.laravel/esi-get" /></div>';
});
});
Generates a cached page in storage/httpcache
:
<div><?php echo $this->surrogate->handle($this, 'http://localhost.laravel/esi-get', '', false) ?></div>
Which Outputs:
<div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>...
In perpetuity until it runs out of memory when visited.
from laravel-httpcache.
Same error here, the sub request is dispatched through the middlewares but the route remains the same of the main request.
from laravel-httpcache.
Hello @barryvdh,
I have same error. ESI include has been create an infinite loop that throw an allowed memory time error or max execution time exceeded.
Can you check it or help me please?
Thanks a lot!
from laravel-httpcache.
Related Issues (20)
- Not being updated? HOT 1
- TTL for Route group? HOT 4
- Class http_cache.store does not exist HOT 4
- Session not store on request HOT 4
- Session Issue HOT 3
- Missing middleware ttl HOT 1
- Barryvdh\HttpCache\Middleware\SetTtl does not exist HOT 4
- Ajax request from cached routes (pages) are not working HOT 2
- [Tip] how to get the cache to work HOT 2
- [feature] add support for foshttpcache
- Laravel 5.5 - ClearCommand::handle() does not exist HOT 5
- Update to work with laravel 5.6? HOT 3
- Error HttpFoundation\Request::isMethodSafe() is deprecated HOT 5
- improve documentation and bring it up to date for Laravel 5.5 HOT 1
- This package only caches the files? HOT 2
- Disabling the cache does not work HOT 6
- Laravel 6.0 Support HOT 3
- Laravel 5.8 and Laravel 6.0 esi tag issue HOT 1
- Is possible to cache only not logged users?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-httpcache.