Skip to content

Commit

Permalink
Disable HTTP caches on preview links
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu authored and robbieaverill committed Jul 18, 2018
1 parent 2f8ec64 commit 6d2d80c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/controllers/ShareDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class ShareDraftController extends Controller
*/
public function preview(SS_HTTPRequest $request)
{
// Ensure this URL doesn't get picked up by HTTP caches
HTTPCacheControl::singleton()->disableCache();

$key = $request->param('Key');
$token = $request->param('Token');

Expand Down

0 comments on commit 6d2d80c

Please sign in to comment.