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; }