Skip to content

Commit ef5249b

Browse files
Merge pull request #46394 from nextcloud/backport/46320/stable28
[stable28] perf: Set session.cache_limiter at runtime to avoid clients caching static assets served by PHP
2 parents 1aa86f2 + 9974f0b commit ef5249b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/Session/Internal.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class Internal extends Session {
5252
public function __construct(string $name) {
5353
set_error_handler([$this, 'trapError']);
5454
$this->invoke('session_name', [$name]);
55+
$this->invoke('session_cache_limiter', ['']);
5556
try {
5657
$this->startSession();
5758
} catch (\Exception $e) {

0 commit comments

Comments
 (0)