File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5252 if (!beresp.http.Vary ~ " Accept-Encoding" ) {
5353 set beresp.http.Vary :Accept-Encoding = " " ;
5454 }
55- if (req.http.Accept-Encoding == " gzip" ) {
55+ if (req.http.Accept-Encoding == " br" ) {
56+ set beresp.brotli = true ;
57+ } else if (req.http.Accept-Encoding == " gzip" ) {
5658 set beresp.gzip = true ;
5759 }
5860 }
Original file line number Diff line number Diff line change 106106 set req.http.Https = " on" ;
107107 }
108108
109+ # Add support for Brotli static compression
110+ if (req.http.Fastly-Orig-Accept-Encoding ) {
111+ if (req.http.Fastly-Orig-Accept-Encoding ~ " \bbr\b" ) {
112+ set req.http.Accept-Encoding = " br" ;
113+ }
114+ }
115+
109116 if (fastly.ff.visits_this_service > 0 ) {
110117 # disable ESI processing on Origin Shield
111118 set req.esi = false ;
You can’t perform that action at this time.
0 commit comments