Add support for WP Rocket Cache
-
I’d appreciate if these code changes can be made and released as a new version. I tried to update SVN but i have no access, otherwise i’d be happy to.
Problem: WP Rocket and HTTP Headers plugin dont play together, the header’s are never returned. This is because WP Rocket creates a
.html
cache file and a.html_gzip
file.-rw-rw-r-- 1 1001 root 143720 Oct 30 11:39 index-https.html -rw-rw-r-- 1 1001 root 24560 Oct 30 11:39 index-https.html_gzip
Solution: Change regex to support
html_gzip
http-headers.php
lines 878 and 1107878: - array('location ~* \.(php|html)$ {'), 878: + array('location ~* \.(php|html|html_gzip$ {'), 1107: - array(' <FilesMatch "\.(php|html)$">'), 1107: + array(' <FilesMatch "\.(php|html|html_gzip)$">'),
- The topic ‘Add support for WP Rocket Cache’ is closed to new replies.