mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8318 from dhensby/pulls/3.7/fix-http-caching
3.7 HTTP Caching fixes
This commit is contained in:
commit
46d8aad91a
@ -221,6 +221,8 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
|||||||
public function init() {
|
public function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
|
HTTPCacheControl::singleton()->disableCache();
|
||||||
|
|
||||||
Config::inst()->update('SSViewer', 'rewrite_hash_links', false);
|
Config::inst()->update('SSViewer', 'rewrite_hash_links', false);
|
||||||
Config::inst()->update('ContentNegotiator', 'enabled', false);
|
Config::inst()->update('ContentNegotiator', 'enabled', false);
|
||||||
|
|
||||||
|
@ -413,6 +413,7 @@ class Security extends Controller implements TemplateGlobalProvider {
|
|||||||
* sessions don't timeout. A common use is in the admin.
|
* sessions don't timeout. A common use is in the admin.
|
||||||
*/
|
*/
|
||||||
public function ping() {
|
public function ping() {
|
||||||
|
HTTPCacheControl::singleton()->disableCache();
|
||||||
Requirements::clear();
|
Requirements::clear();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user