Possible Bug: Missing Cache Validator for Fonts
-
Hi W3TC team,
Just found a possible bug.GT Metrix complain about missing cache validator on fonts file.
It seems Version 0.11.0 create a conflicting entry in .httaccess:
snippet: “Group 1”:
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$"> FileETag MTime Size <IfModule mod_headers.c> Header set Pragma "public" Header append Cache-Control "public" Header unset Set-Cookie Header set X-Powered-By "W3 Total Cache/0.11.0" </IfModule> </FilesMatch>and immediately followed by “Group 2”
<FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|json|mdb|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|JSON|MDB|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$"> FileETag None <IfModule mod_headers.c> Header unset ETag Header unset Last-Modified </IfModule> </FilesMatch>“Group 1” is using “FileETag MTime Size” while “Group 2” is using “FileETag None”. And it seems “Group 2” is a subset of “Group 1”. (Those group of code are the last 2 FilesMatch block before mod_header)
If I remember correctly, the previous version did have a similar second group but only to remove the Last-Modified header (without “FileETag None” and “Header unset ETag”)
So, I remove those 2 commands (the one removing the Etag at 2nd group and all good)
Hopefully, it is just simple bug otherwise I am the one that might have some conflicting setting 🙂
If I did not change any setting W3TC will not recreate my .htaccess, right? please? LOL….
Awesome plugin. Internet will never be the same without W3TC!! Literally…
Thanks.
Cheers,
Denis
The topic ‘Possible Bug: Missing Cache Validator for Fonts’ is closed to new replies.