Missing Sage assets after Trellis deploy with FastCGI Caching turned on

Hi,

After a successful deployment to a remote server using Trellis, there is a lengthy period of time when pages are loaded without any CSS or JS.

This appears to be to related to having FastCGI Caching ‘enabled’. After 60 seconds or so (the cache duration) the page then references the newly deployed assets, and pages load correctly.

Just wondering if the solution is to remove the cache folder altogether after each deployment?

Many thanks

Looks like you came across a bug! We’ve briefly discussed this internally and @swalkinshaw mentioned potentially adding $realpath_root to the cache key, which is currently:

fastcgi_cache_key $scheme$host$request_uri$request_method;

Good to know, thanks for the quick response!

Tracking this issue here: https://github.com/roots/trellis/issues/489

1 Like