File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change 101
101
lexers ['php-annotations' ] = PhpLexer (startinline = True )
102
102
lexers ['php-standalone' ] = PhpLexer (startinline = True )
103
103
lexers ['php-symfony' ] = PhpLexer (startinline = True )
104
- lexers ['varnish2' ] = CLexer ()
105
104
lexers ['varnish3' ] = CLexer ()
106
105
lexers ['varnish4' ] = CLexer ()
107
106
108
107
config_block = {
109
- 'varnish2' : 'Varnish 2' ,
110
108
'varnish3' : 'Varnish 3' ,
111
109
'varnish4' : 'Varnish 4'
112
110
}
Original file line number Diff line number Diff line change @@ -83,17 +83,6 @@ configuration if you are still using Varnish 3:
83
83
}
84
84
}
85
85
86
- .. code-block :: varnish2
87
-
88
- sub vcl_fetch {
89
- // By default, Varnish2 ignores Pragma: nocache and Cache-Control: no-cache and private
90
- if (beresp.http.Cache-Control ~ "no-cache" ||
91
- beresp.http.Cache-Control ~ "private"
92
- ) {
93
- return (hit_for_pass);
94
- }
95
- }
96
-
97
86
Enable Edge Side Includes (ESI)
98
87
-------------------------------
99
88
@@ -151,22 +140,6 @@ Symfony adds automatically:
151
140
}
152
141
}
153
142
154
- .. code-block :: varnish2
155
-
156
- sub vcl_fetch {
157
- // Check for ESI acknowledgement and remove Surrogate-Control header
158
- if (beresp.http.Surrogate-Control ~ "ESI/1.0") {
159
- unset beresp.http.Surrogate-Control;
160
- esi;
161
- }
162
- }
163
-
164
- .. caution ::
165
-
166
- Compression with ESI was not supported in Varnish until version 3.0
167
- (read `GZIP and Varnish `_). If you're not using Varnish 3.0, put a web
168
- server in front of Varnish to perform the compression.
169
-
170
143
.. tip ::
171
144
172
145
If you followed the advice about ensuring a consistent caching
You can’t perform that action at this time.
0 commit comments