Is there anyway to separate the static files domain from the html?

My Issue are closed, so I run to there…

Issue Summary
I’d like to provide the static files (like js, css and images) by domain A, and provide the html by domain B. Domain A is a CDN domain, so the static files will be cached and speed up. I don’t see any config about this.

Technical details:
Ghost Version: 1.21
Node Version: 9.0
Browser/OS: Chrome
Database: SQLite

@jaggerwang I think using a storage adapter is the only way to do this at the moment unless you want to set up redirects for image requests to your CDN URLs.

If you don’t want to use one of the existing storage adapters and you just want to serve assets from a different domain then you could adapt the local file store to return an absolute URL rather than a relative URL.

Got it,Thanks!Got it,Thanks!Got it,Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.