strata / frontend

The front of Headless CMS. Build an efficient front-end website taking content from multiple data sources.
MIT License
13 stars 5 forks source link

Maintenance page #77

Open simonrjones opened 4 years ago

simonrjones commented 4 years ago

Take site down and return static HTML page. Review best way to manage this.

Need a pre-prepared self contained HTML page.

Need to return a 503 status code and indicate when user should revisit:

header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); header('Retry-After: 1800');

Nice-to-have: open up site access to a set of IP addresses so we can test site without making it public.

See https://yoast.com/http-503-site-maintenance-seo/