Level 1
it turns out that it was not a Lumen problem, but a PHP problem.
session.cache_limiter = nocache
is the culprit of setting no-cache headers
Hi there, does anyone ever do this with Lumen?
I am currently having a problem with browser cache, my code is like this:
return response($data, 200)->withHeaders(['Cache-control' => 'public, max-age=86400']);
the problem is, the related page returns with cache control header as follows:
Cache-Control:no-store, no-cache, must-revalidate, max-age=86400, public
so the browser won't cache it.
So how to remove the 'no-store, no-cache' from the header?
it turns out that it was not a Lumen problem, but a PHP problem.
session.cache_limiter = nocache
is the culprit of setting no-cache headers
Please or to participate in this conversation.