litespeedtech / lscache-laravel

LSCache for Laravel framework
GNU General Public License v3.0
51 stars 14 forks source link

LiteSpeed Cache and Browser Cache #18

Closed eliassdogos closed 3 years ago

eliassdogos commented 3 years ago

LiteSpeed Cache and Browser Cache. are different thing.

LiteSpeed Cache Rules at web.php (laravel) ovverides Browser cache(defaults or rules from headers via php) or not?

lucasRolff commented 3 years ago

They're not related. What LiteSpeed Cache rules you set doesn't affect your browser cache, and neither does it the other way around.

They're handling two different layers (one being on the server, and one being in the browser).

eliassdogos commented 3 years ago

I mean response headers. For example here https://imgur.com/e9XiXQd Cache-Control: is affected from litespeed cache rules which has been hit?

lucasRolff commented 3 years ago

The Cache-Control header is not affected or set by the lscache plugin for Laravel. The Cache-Control header controls browser cache, not server cache.