diff --git a/code/KickAssets.php b/code/KickAssets.php index b6fba2c..896d43f 100644 --- a/code/KickAssets.php +++ b/code/KickAssets.php @@ -142,6 +142,7 @@ public function handleIndex($r) { return $this->handleSearch($r); } + HTTP::set_cache_age(0); return $this->renderWith('KickAssets'); } @@ -153,6 +154,7 @@ public function handleIndex($r) { * @return SS_HTTPResponse */ public function handleFolderContents(SS_HTTPRequest $r) { + HTTP::set_cache_age(0); if(!$r->param('FolderID')) { $folder = Injector::inst()->get('Folder'); $folder->Filename = ASSETS_DIR; @@ -228,7 +230,8 @@ public function handleRecentItems(SS_HTTPRequest $r) { } } - + + HTTP::set_cache_age(0); return (new SS_HTTPResponse( Convert::array2json($result), 200 ))->addHeader('Content-Type', 'application/json'); @@ -320,7 +323,8 @@ public function handleFolders(SS_HTTPRequest $r) { 'filename' => $f->Filename ); } - + + HTTP::set_cache_age(0); return (new SS_HTTPResponse( Convert::array2json($response) ))->addHeader('Content-Type','application/json');