We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

LiteSpeed server and Lscache plugin for laravel

Simon Bédard October 30, 2020 by Simon Bédard

Hi, we have recently upgrade our server to use LiteSpeed web server.

We are using the LsCache plugin to do some server caching for our websites. (This is a composer package): You can read more here

There is a setting to set the header to no-cache for auth user.


This is perfect for the control panel, because I dont want my admin to be cache on the server.


When you go to the login page. I have a problem with a single route "/cp".
I need to be able to set the header to no-cache for this route. Otherwise, my user cannot login to the CP.

Where can I change the header for this route? Not sure where to go.

Is it possible to add a middleware on top of this route to change the header.

Something like this:


Thanks, Simon

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
3 Replies