I'm trying to reduce the number of requests' connections of js scripts and one option is usage of esi tag.
Like from:
<script src="https://whatever.min.js"></script>
To: <script><esi:include src="https://whatever.min.js"/></script>
But now cdn is giving 503 error for it and trying to treat script like page block. Doesn't work for fastly and varnish
Here is an example that is using ESI (it's built with Fastly's Fiddle tool): https://fiddle.fastly.dev/fiddle/f2842f47
You'll need to execute the
esistatement to let Varnish know that the ESI parser is required.I would recommend you read Fastly's ESI reference page: https://developer.fastly.com/reference/vcl/statements/esi/
If you require any additional support please contact [email protected]
Thanks!
Other reference material: