* Move inline web scripts to files and enforce the nginx page policy
* Render CSP_* through the nginx image entrypoint and allow blob: in connect-src
* Allow CSP_IMG_SRC and document nginx add_header inheritance and connect-src ports
* Keep a read-only logo mount from stopping nginx and add optional CSP_REPORT_URI
* fix: start nginx when the root or a logo mount is read-only
* docs: document the web CSP variables and upgrade steps
---------
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
Upon new release, NGINX would return 200 OK with new static files.
Otherwise, NGINX would return 304 Not Modified with empty response, and browser continue to reuse cached static files.
(cherry picked from commit 4506a5e490)
Cache expires after 24h.
After cache is expired, browser can compare ETag to the server to check if the file has changed. If the server returns the same token, then the file is the same, and there's no need to re-download it.
(cherry picked from commit b511f2094f)