Browse Source

set no-cache header on bookmark shortcut

pull/10/head
Aaron Parecki 9 years ago
parent
commit
7a5baa2912
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      controllers/controllers.php

+ 1
- 0
controllers/controllers.php View File

@ -90,6 +90,7 @@ $app->get('/docs', function() use($app) {
$app->get('/add-to-home', function() use($app) {
$params = $app->request()->params();
header("Cache-Control: no-cache, must-revalidate");
if(array_key_exists('token', $params) && !session('add-to-home-started')) {
unset($_SESSION['add-to-home-started']);

Loading…
Cancel
Save