Merge pull request #46320 from nextcloud/perf/php-session-cache-limiter

perf: Set session.cache_limiter at runtime to avoid clients caching static assets served by PHP
pull/43684/merge
Joas Schilling 5 months ago committed by GitHub
commit e31f474fec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      lib/private/Session/Internal.php

@ -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…
Cancel
Save