From 159a292c9b5fa294888b274592dae5e7695afba1 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 22 Aug 2014 15:25:51 -0500
Subject: [PATCH] Fix incorrect HTTP cache detection

---
 include/class.http.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.http.php b/include/class.http.php
index 3baea958a..18eeb2e1b 100644
--- a/include/class.http.php
+++ b/include/class.http.php
@@ -70,7 +70,7 @@ class Http {
         header('Expires: ' . gmdate(DATE_RFC822, time() + $ttl)." GMT");
         header('Pragma: private');
         if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified ||
-            @trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
+            @trim($_SERVER['HTTP_IF_NONE_MATCH'], '" ') == $etag) {
                 header("HTTP/1.1 304 Not Modified");
                 exit();
         }
-- 
GitLab