-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable php cache control #30178
disable php cache control #30178
Conversation
Had to prevent PHP from sending cache control headers. Otherwise the dav previews from #29319 always had to reload the previews because Chrome respects the Pragma:nocache header that is sent by default. using 0 instead of emptystring, otherwise we get a `.htaccess: php_value takes two arguments, PHP Value Modifier` error.
@@ -43,6 +43,7 @@ | |||
php_value mbstring.func_overload 0 | |||
php_value default_charset 'UTF-8' | |||
php_value output_buffering 0 | |||
php_value session.cache_limiter 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://php.net/manual/fa/session.configuration.php#ini.session.cache-limiter shouldn't that be a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but php_value session.cache_limiter ''
leads to a 500 status and .htaccess: php_value takes two arguments, PHP Value Modifier
in the apache error log. 0
seems to work
what about environments where htaccess is not in place? |
maybe base.php is a better place ... all app framework routes already handle cache control headers |
@butonic any update on this ? |
=> base.php or Webdav plugin layer ? @DeepDiver1975 @butonic decide and then we can take over and reassign |
To clarify, the php docs on session_cache_limiter say
In general, we are managing the cache control headers ourself in the app framework Response https://github.com/owncloud/core/blob/v10.1.0/lib/public/AppFramework/Http/Response.php#L49 or any derived class. So disabling cache management in php is the right thing to do, because it might otherwise cause unwanted caching. However, setting it to '' in the .htaccess produces a 500 error, so I tried 0 and it worked. It seems Drupal is using I vote to disable php cache control in the base.php. It least we can then properly set it to ''. |
raised as #34441 if there is no particular criticality to this, the ticket will remain in backlog for later |
Had to prevent PHP from sending cache control headers. Otherwise the dav previews from #29319 always had to reload the previews because Chrome respects the Pragma:nocache header that is sent by default.
Related: #26922 (comment)