'Unable to load compiled assets (CSS) after installation of Varnish & hitch

CSS is not loading when I installed Varnish version 7.0.2 & hitch 1.7.0 on ubuntu 20.04 server.

It's loading fine when i stop Varnish.

Also tried to bypassed site but issue still exists:

sub vcl_recv {
   if (req.http.host ~ "(www\.)?(example)\.com") {
     return(pass);
   }
}

Note: There isn't any changes in VCL file.

Please help me out in this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source