Skip to content

Commit

Permalink
Merge pull request #46320 from nextcloud/perf/php-session-cache-limiter
Browse files Browse the repository at this point in the history
perf: Set session.cache_limiter at runtime to avoid clients caching static assets served by PHP
  • Loading branch information
nickvergessen authored Jul 10, 2024
2 parents cd7007c + 38bee2c commit e31f474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Session/Internal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e31f474

Please sign in to comment.