From f2b5ba24dea639fa151757d65f26e5b51c7a683f Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 6 Mar 2024 16:19:56 -0500 Subject: [PATCH] Provide example config for Apache HTTP Server --- config/httpd.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config/httpd.conf diff --git a/config/httpd.conf b/config/httpd.conf new file mode 100644 index 00000000..597466e2 --- /dev/null +++ b/config/httpd.conf @@ -0,0 +1,30 @@ + + ServerName localhost + + DocumentRoot "/app" + + + # disable cache entriely by default (apart from Etag which is accurate enough) + Header add Cache-Control "private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" + CacheDisable on + ExpiresActive off + + # also turn off last-modified since they are just the timestamps of the file in the docker image + # and may or may not bear any resemblance to when the resource changed + Header add Last-Modified "" + + DirectoryIndex index.html + + + # assets can be cached because they have hashed filenames + + ExpiresActive on + ExpiresDefault "access plus 1 week" + Header add Cache-Control "public, no-transform" + + + + ForceType application/json + + +