This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Example of HTML Streaming. This gist involves both Varnish and nginx LUA reverse proxies | |
#Varnish: | |
sub vcl_recv { | |
# Do not stream on non-get requests | |
if (req.method != "GET" && req.method != "HEAD" && req.method != "PURGE") { | |
return (pass); | |
} | |
# By defaul disable holepunch unless below cases fall through (do not modify this line) |