Advertisement
Guest User

default.vcl

a guest
Nov 30th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # The code sets the Accept-Encoding header from the client to either gzip or deflate
  2.  
  3. if (req.http.Accept-Encoding) {
  4. if (req.http.Accept-Encoding ~ "gzip") {
  5. # If the browser supports it, we'll use gzip.
  6. #set req.http.Accept-Encoding = "gzip";
  7. unset req.http.Accept-Encoding;
  8. }
  9. else if (req.http.Accept-Encoding ~ "deflate") {
  10. # Next, try deflate if it is supported.
  11. set req.http.Accept-Encoding = "deflate";
  12. }
  13. else {
  14. # Unknown algorithm. Remove it and send unencoded.
  15. unset req.http.Accept-Encoding;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement