From bb11ca47bc2414051f488fef759cc02591ab24a4 Mon Sep 17 00:00:00 2001 From: Seth Battin Date: Mon, 23 Mar 2015 14:41:51 -0500 Subject: [PATCH] include pragma='no-cache' in the cache header reset --- flight/net/Response.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flight/net/Response.php b/flight/net/Response.php index db66c16..48f383c 100644 --- a/flight/net/Response.php +++ b/flight/net/Response.php @@ -190,6 +190,9 @@ class Response { $expires = is_int($expires) ? $expires : strtotime($expires); $this->headers['Expires'] = gmdate('D, d M Y H:i:s', $expires) . ' GMT'; $this->headers['Cache-Control'] = 'max-age='.($expires - time()); + if (isset($this->headers['Pragma']) && $this->headers['Pragma'] == 'no-cache'){ + unset($this->headers['Pragma']); + } } return $this; }