Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
fix(static): never use GZip when talking with Runtime, as there might…
Browse files Browse the repository at this point in the history
… be ESI
  • Loading branch information
trieloff committed Apr 26, 2019
1 parent 393ae0a commit 21ce4a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions layouts/fastly/helix.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -1041,13 +1041,12 @@ sub hlx_bereq {
}
}

# set backend authentication

if (req.backend == F_AdobeRuntime) {
# set backend authentication
set bereq.http.Authorization = table.lookup(secrets, "OPENWHISK_AUTH");
}

# making sure to get an uncompressed object for ESI
if ( req.url.ext == "html" || req.url.ext == "js" || req.url.ext == "css" ) {
# making sure to get an uncompressed object for ESI
unset bereq.http.Accept-Encoding;
}

Expand Down

0 comments on commit 21ce4a1

Please sign in to comment.