File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 88 */
99
1010sub fos_debug_deliver {
11- # Add extra headers if debugging is enabled
11+ # Add X-Cache header if debugging is enabled
1212 if (resp.http.X-Cache-Debug ) {
1313 if (obj.hits > 0 ) {
1414 set resp.http.X-Cache = "HIT" ;
Original file line number Diff line number Diff line change 88 */
99
1010sub fos_debug_deliver {
11- # Add extra headers if debugging is enabled
12- # In Varnish 4 the obj.hits counter behaviour has changed, so we use a
13- # different method: if X-Varnish contains only 1 id, we have a miss, if it
14- # contains more (and therefore a space), we have a hit.
11+ # Add X-Cache header if debugging is enabled
1512 if (resp.http.X-Cache-Debug ) {
16- if (resp.http.X-Varnish ~ " " ) {
13+ if (obj.hits > 0 ) {
1714 set resp.http.X-Cache = "HIT" ;
1815 } else {
1916 set resp.http.X-Cache = "MISS" ;
You can’t perform that action at this time.
0 commit comments