Merge pull request #8318 from dhensby/pulls/3.7/fix-http-caching

3.7 HTTP Caching fixes
This commit is contained in:
Ingo Schommer 2018-09-05 09:38:04 +12:00 committed by GitHub
commit 46d8aad91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,8 @@ class LeftAndMain extends Controller implements PermissionProvider {
public function init() {
parent::init();
HTTPCacheControl::singleton()->disableCache();
Config::inst()->update('SSViewer', 'rewrite_hash_links', false);
Config::inst()->update('ContentNegotiator', 'enabled', false);

View File

@ -413,6 +413,7 @@ class Security extends Controller implements TemplateGlobalProvider {
* sessions don't timeout. A common use is in the admin.
*/
public function ping() {
HTTPCacheControl::singleton()->disableCache();
Requirements::clear();
return 1;
}