For websites that are lightning fast, bullet proof, low cost and incredibly scalable, enable the “Static Publisher.”
The static publisher is a static website, where all your web pages, when published, are stored in BLOB storage. This is in-expensive, ultra-fast, scalable and secure way to host your website.
While in this mode, when you publish a web page it stores it as HTML in BLOB storage. This storage account has a read-only, static website. It is very fast, can handle incredible amount of web traffic, and is easily regionally distributable.
If your website is all, or mostly static content, where no back-end processing is necessary, a static website is perfect.
Here are some situations when not to use it:
Turning on the static website is easy. In the “Editor” App Service, set the environment variable:
CosmosStaticWebPages
to true
.
Next, setup the static website of your storage account with your domain name. See the Azure documentation on how to configure the static website.
In the “Static Website” configuration, add “index.html” to the “index document name.”
Lastly, once you have the static website configured, you can remove the dynamic publisher App Service.