diff --git a/layouts/fastly/helix.vcl b/layouts/fastly/helix.vcl index 8d7a28f3..034e888c 100644 --- a/layouts/fastly/helix.vcl +++ b/layouts/fastly/helix.vcl @@ -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; }