You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
So, as @trieloff was mentioning, turning on the default Fastly gzip compression interferes with ESI processes. I double checked and sure enough it does.
I spoke with Fastly's support and they recommend the following:
"So you can enable gzip in the UI of the service. for ESI you will want to add this snippet to vcl_fetch:
/* Turn on ESI for root GETs */
if (req.url == "/esi_example.html") {
set beresp.do_esi = true; /* Do ESI processing */
esi;
set beresp.ttl = 5s; /* Sets the TTL on the HTML above */
}
That should set up the gzip and ESI functionality.
If you are using shielding you will want to add this to vcl_recv:
if (req.http.Fastly-FF) {
set req.esi = false;
}
I hope that helps."
From speaking with @filmaj I understand that Helix is responsible for generating all the varnish files so I thought I'd kick this over to you. How best can I go about enabling gzip using the above changes?
The text was updated successfully, but these errors were encountered:
We use ESI at the moment for following content types:
text/html: because you might use ESI inside your HTL
text/javascript: for automatic statification of ES6 module imports
text/css: for automatic statification of CSS
i.e. in almost every scenario where compression is useful (it's not useful for images).
If we build something like I outlined here: adobe/helix-pipeline#365 (comment) (move the ESI processing to Runtime) we would be able to have Gzip across the board.
If we build something like I outlined here: adobe/helix-pipeline#365 (comment) (move the ESI processing to Runtime) we would be able to have Gzip across the board.
So, as @trieloff was mentioning, turning on the default Fastly gzip compression interferes with ESI processes. I double checked and sure enough it does.
More info here:
I spoke with Fastly's support and they recommend the following:
"So you can enable gzip in the UI of the service. for ESI you will want to add this snippet to
vcl_fetch
:That should set up the gzip and ESI functionality.
If you are using shielding you will want to add this to
vcl_recv
:I hope that helps."
From speaking with @filmaj I understand that Helix is responsible for generating all the varnish files so I thought I'd kick this over to you. How best can I go about enabling gzip using the above changes?
The text was updated successfully, but these errors were encountered: