secret
Created

Fix cache_noproxy Cache-Control header for W3 Total Cache 0.9.2.11

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
diff -ruw w3-total-cache/lib/Minify/HTTP/ConditionalGet.php w3-total-cache-redbubble/lib/Minify/HTTP/ConditionalGet.php
--- w3-total-cache/lib/Minify/HTTP/ConditionalGet.php 2013-05-22 04:20:30.000000000 +1000
+++ w3-total-cache-redbubble/lib/Minify/HTTP/ConditionalGet.php 2013-05-29 15:22:02.000000000 +1000
@@ -175,7 +175,7 @@
break;
case 'cache_noproxy':
- $this->_headers['Cache-Control'] = 'public, must-revalidate';
+ $this->_headers['Cache-Control'] = 'private, must-revalidate';
break;
case 'cache_maxage':
diff -ruw w3-total-cache/lib/W3/BrowserCacheAdminEnvironment.php w3-total-cache-redbubble/lib/W3/BrowserCacheAdminEnvironment.php
--- w3-total-cache/lib/W3/BrowserCacheAdminEnvironment.php 2013-05-22 04:20:30.000000000 +1000
+++ w3-total-cache-redbubble/lib/W3/BrowserCacheAdminEnvironment.php 2013-05-29 15:20:41.000000000 +1000
@@ -388,7 +388,7 @@
case 'cache_noproxy':
$headers_rules .= " Header set Pragma \"public\"\n";
- $headers_rules .= " Header set Cache-Control \"public, must-revalidate\"\n";
+ $headers_rules .= " Header set Cache-Control \"private, must-revalidate\"\n";
break;
case 'cache_maxage':
@@ -552,7 +552,7 @@
case 'cache_noproxy':
$rules .= " add_header Pragma \"public\";\n";
- $rules .= " add_header Cache-Control \"public, must-revalidate\";\n";
+ $rules .= " add_header Cache-Control \"private, must-revalidate\";\n";
break;
case 'cache_maxage':
diff -ruw w3-total-cache/lib/W3/Cdn/Base.php w3-total-cache-redbubble/lib/W3/Cdn/Base.php
--- w3-total-cache/lib/W3/Cdn/Base.php 2013-05-22 04:20:30.000000000 +1000
+++ w3-total-cache-redbubble/lib/W3/Cdn/Base.php 2013-05-29 15:21:12.000000000 +1000
@@ -407,7 +407,7 @@
case 'cache_noproxy':
$headers = array_merge($headers, array(
'Pragma' => 'public',
- 'Cache-Control' => 'public, must-revalidate'
+ 'Cache-Control' => 'private, must-revalidate'
));
break;
diff -ruw w3-total-cache/lib/W3/MinifyAdminEnvironment.php w3-total-cache-redbubble/lib/W3/MinifyAdminEnvironment.php
--- w3-total-cache/lib/W3/MinifyAdminEnvironment.php 2013-05-22 04:20:30.000000000 +1000
+++ w3-total-cache-redbubble/lib/W3/MinifyAdminEnvironment.php 2013-05-29 15:20:41.000000000 +1000
@@ -601,7 +601,7 @@
case 'cache_noproxy':
$rules .= " Header set Pragma \"public\"\n";
- $rules .= " Header set Cache-Control \"public, must-revalidate\"\n";
+ $rules .= " Header set Cache-Control \"private, must-revalidate\"\n";
break;
case 'cache_maxage':
@@ -683,7 +683,7 @@
case 'cache_noproxy':
$common_rules .= " add_header Pragma \"public\";\n";
- $common_rules .= " add_header Cache-Control \"public, must-revalidate\";\n";
+ $common_rules .= " add_header Cache-Control \"private, must-revalidate\";\n";
break;
case 'cache_maxage':
diff -ruw w3-total-cache/lib/W3/PgCache.php w3-total-cache-redbubble/lib/W3/PgCache.php
--- w3-total-cache/lib/W3/PgCache.php 2013-05-22 04:20:30.000000000 +1000
+++ w3-total-cache-redbubble/lib/W3/PgCache.php 2013-05-29 15:21:06.000000000 +1000
@@ -1287,7 +1287,7 @@
case 'cache_noproxy':
$headers = array_merge($headers, array(
'Pragma' => 'public',
- 'Cache-Control' => 'public, must-revalidate'
+ 'Cache-Control' => 'private, must-revalidate'
));
break;
diff -ruw w3-total-cache/lib/W3/PgCacheAdminEnvironment.php w3-total-cache-redbubble/lib/W3/PgCacheAdminEnvironment.php
--- w3-total-cache/lib/W3/PgCacheAdminEnvironment.php 2013-05-22 04:20:30.000000000 +1000
+++ w3-total-cache-redbubble/lib/W3/PgCacheAdminEnvironment.php 2013-05-29 15:20:53.000000000 +1000
@@ -1213,7 +1213,7 @@
case 'cache_noproxy':
$header_rules .= " Header set Pragma \"public\"\n";
- $header_rules .= " Header set Cache-Control \"public, must-revalidate\"\n";
+ $header_rules .= " Header set Cache-Control \"private, must-revalidate\"\n";
break;
case 'cache_maxage':
@@ -1302,7 +1302,7 @@
case 'cache_noproxy':
$common_rules .= " add_header Pragma \"public\";\n";
- $common_rules .= " add_header Cache-Control \"public, must-revalidate\";\n";
+ $common_rules .= " add_header Cache-Control \"private, must-revalidate\";\n";
break;
case 'cache_maxage':

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.