aboutsummaryrefslogtreecommitdiff
path: root/radicale_web/web/infcloud/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'radicale_web/web/infcloud/.htaccess')
-rw-r--r--radicale_web/web/infcloud/.htaccess35
1 files changed, 35 insertions, 0 deletions
diff --git a/radicale_web/web/infcloud/.htaccess b/radicale_web/web/infcloud/.htaccess
new file mode 100644
index 0000000..b8583d1
--- /dev/null
+++ b/radicale_web/web/infcloud/.htaccess
@@ -0,0 +1,35 @@
+#########################################################################################################################
+# Apache configuration (REQUIRED for correct HTML5 cache functionality in browsers):
+# 1.) You NEED to enable the following Apache modules: mod_mime, mod_headers (optionally you can also enable mod_deflate)
+# 2.) You NEED to add the following lines into your Apache vhost configuration (without the # character):
+# <Directory /client/installation/directory/>
+# AllowOverride FileInfo Limit
+# <IfVersion >= 2.3>
+# Require all granted
+# </IfVersion>
+# <IfVersion < 2.3>
+# Order allow,deny
+# Allow from all
+# </IfVersion>
+# </Directory>
+#########################################################################################################################
+
+# Add "Content-Type: text/cache-manifest" header for .manifest files
+<IfModule mod_mime.c>
+ AddType text/cache-manifest .manifest
+</IfModule>
+
+# Add "Cache-Control: max-age=0, must-revalidate, no-cache, no-transform, private" header for all files
+# for more information see: https://tools.ietf.org/html/rfc7234
+<IfModule mod_headers.c>
+ Header set Cache-Control "max-age=0, must-revalidate, no-cache, no-transform, private"
+</IfModule>
+
+<IfModule mod_deflate.c>
+ SetOutputFilter DEFLATE
+</IfModule>
+
+# If you use mod_cache set the correct path for the cache.manifest here
+#<IfModule mod_cache.c>
+# CacheDisable cache.manifest
+#</IfModule>
bgstack15