mirror of
https://github.com/nextcloud/server.git
synced 2026-02-10 06:15:08 -05:00
perf: Set session.cache_limiter at runtime to avoid clients caching static assets served by PHP
By default there is a Pragma: no-cache header set due to the default value `no-cache` of session.cache-limiter, which will cause Chrome and iOS to not cache even with a different Cache-Control header set on the response. Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7b60b989b0
commit
38bee2c014
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ class Internal extends Session {
|
|||
public function __construct(string $name) {
|
||||
set_error_handler([$this, 'trapError']);
|
||||
$this->invoke('session_name', [$name]);
|
||||
$this->invoke('session_cache_limiter', ['']);
|
||||
try {
|
||||
$this->startSession();
|
||||
} catch (\Exception $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue