Skip to content

Commit

Permalink
Expose header date to the service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Jul 23, 2019
1 parent 96167f3 commit 4bb8a6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions responder.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
if (!empty($this->options['cdn_cors'])) {

header('Access-Control-Allow-Origin: *', true);
header('Access-Control-Expose-Headers: Date');
}

$uri = $_SERVER['REQUEST_URI'];
Expand Down Expand Up @@ -170,6 +171,7 @@
}

header('Last-Modified: ' . gmdate('D, d M Y H:i:s T', $mtime));
header('Date: ' . gmdate('D, d M Y H:i:s T'));

if(preg_match('#(text)|(xml)#', $accepted[$ext])) {

Expand Down

0 comments on commit 4bb8a6e

Please sign in to comment.