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
Hello @barryvdh
I implemented the HTTP cache in Laravel and it is working fine. But I am getting the session issue so I took the reference of this PR #31
Before implemented the code:
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Barryvdh\HttpCache\Middleware\CacheRequests::class,
\Barryvdh\HttpCache\Middleware\ParseEsi::class,
];
Took reference after implemented the below code:
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
];
And add some code in route.php like this:
Route::get('partial/cart-qty','Cart\Controllers\CartController@getItemCount')->middleware(['\Barryvdh\HttpCache\Middleware\CacheRequests::class','\Barryvdh\HttpCache\Middleware\ParseEsi::class']);
I have using this route for the ESI:
<esi:include src=""/>
So can you help me for the little issue ?
Thanks
The text was updated successfully, but these errors were encountered:
I have implemented the below code in route.But my dynamic data do not update which is use by ESI tag.
Route::get('partial/cart-qty','Cart\Controllers\CartController@getItemCount')->middleware(['\Barryvdh\HttpCache\Middleware\CacheRequests::class','\Barryvdh\HttpCache\Middleware\ParseEsi::class']);
I have faced the session issue that's why I used this code but it is not working properly So can you help me?
Hello @barryvdh
I implemented the HTTP cache in Laravel and it is working fine. But I am getting the session issue so I took the reference of this PR #31
Before implemented the code:
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Barryvdh\HttpCache\Middleware\CacheRequests::class,
\Barryvdh\HttpCache\Middleware\ParseEsi::class,
];
Took reference after implemented the below code:
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
];
And add some code in route.php like this:
Route::get('partial/cart-qty','Cart\Controllers\CartController@getItemCount')->middleware(['\Barryvdh\HttpCache\Middleware\CacheRequests::class','\Barryvdh\HttpCache\Middleware\ParseEsi::class']);
I have using this route for the ESI:
<esi:include src=""/>
So can you help me for the little issue ?
Thanks
The text was updated successfully, but these errors were encountered: