diff --git a/docker/conf/cont-init.d/50cache-htaccess b/docker/conf/cont-init.d/50cache-htaccess
new file mode 100755
index 0000000000000000000000000000000000000000..7d7b6828b94786df6f1f545db713ba5e333cb6dc
--- /dev/null
+++ b/docker/conf/cont-init.d/50cache-htaccess
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+cache_dir=/opt/noblogs/www/wp-content/cache
+
+if [ ! -e "$cache_dir/.htaccess" ]; then
+    mkdir -p $cache_dir
+    cat >"$cache_dir/.htaccess" <<EOF
+Options -Indexes
+Header set Vary "Accept-Encoding, Cookie"
+Header set Cache-Control "max-age=300"
+ExpiresActive On
+ExpiresByType text/html A300
+EOF
+fi
+
+exit 0