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

Session Issue #32

Open
Chirag-Prajapati opened this issue Apr 26, 2017 · 3 comments
Open

Session Issue #32

Chirag-Prajapati opened this issue Apr 26, 2017 · 3 comments

Comments

@Chirag-Prajapati
Copy link

Chirag-Prajapati commented Apr 26, 2017

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

@Chirag-Prajapati
Copy link
Author

@barryvdh Can you help me?

@barryvdh
Copy link
Owner

What error do you get?

@Chirag-Prajapati
Copy link
Author

Chirag-Prajapati commented Apr 27, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants