Digested assets at the edge
Fingerprinted files from Propshaft or Sprockets can be cached independently of Rails page responses.
Deliver precompiled assets from a CDN hostname. Use their fingerprints to cache across releases and review access requirements before caching uploaded files.
Set asset_host to Cloud CDN. Cache public Active Storage URLs. Cache anonymous pages where possible. Bypass session views and POST.
Fingerprinted files from Propshaft or Sprockets can be cached independently of Rails page responses.
Active Storage public variants can be cached and transformed at the edge.
Devise, dashboards and CSRF forms are not cached.
Point digested assets at the Cloud CDN hostname.
Put public Active Storage URLs on the same distribution or a media hostname.
Marketing pages can be cached with purge on deploy.
Keep session cookies out of the cache key for app HTML.
Yes. Both emit digest filenames that Cloud CDN can long-cache.
Fragment cache remains in Rails. Cloud CDN caches full anonymous responses you mark as public.
Keep private blobs on signed origin URLs. Cache public blobs only.
Cache full documents that are shareable. Turbo Drive requests that vary on session should bypass cache.