Q: How does the system export static content?
A: In two ways:
- Static publishing (from Exponential 6.0.15): builds a static copy of a public siteaccess, crawled as the anonymous user, and publishes it to a git repository, for example for GitHub Pages, with a history and rollback. The commands are ./console exp:static:build and ./console exp:static:publish. See Static publishing.
- The static cache: public pages written as plain files that the web server sends without PHP. ./console exp:cache static regenerate generates them (--site, --path or --node for a part of a site), and exp:cache static status shows what each site holds. It ships switched off, and the installation book advises leaving it off; see Static cache.
A CDN can deliver either copy. For a site that stays dynamic, a CDN in front of the live site is the usual choice: see CDN.
Contributors
- Graham Brookins Updated Maintainer
Comments
Add a comment