From 88713e0ccddd17d064a6e1283bb2495802af028b Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 9 Nov 2023 09:01:29 +0000
Subject: [PATCH] Only serve wp-supercached static files when Accept includes
 text/html

Attempts to fix the content negotiation caching issue #134.
---
 docker/htaccess | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docker/htaccess b/docker/htaccess
index 179c180a..a98bdf79 100644
--- a/docker/htaccess
+++ b/docker/htaccess
@@ -45,6 +45,7 @@ RewriteCond %{REQUEST_URI} !^.*[^/]$
 RewriteCond %{REQUEST_URI} !^.*//.*$
 RewriteCond %{REQUEST_METHOD} !POST
 RewriteCond %{QUERY_STRING} ^$
+RewriteCond %{HTTP:Accept} text/html
 RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
 RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
 RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
-- 
GitLab