{"id":12964102,"date":"2020-06-10T08:26:59","date_gmt":"2020-06-10T08:26:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/specify-a-cache-validator-woff-svg\/"},"modified":"2020-06-10T08:26:59","modified_gmt":"2020-06-10T08:26:59","slug":"specify-a-cache-validator-woff-svg","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/specify-a-cache-validator-woff-svg\/","title":{"rendered":"Specify a cache validator &#8211; woff &amp; svg"},"content":{"rendered":"<p>Hi,<br \/>\nI am using W3 Total Cache Pro.<br \/>\nI get the error GTMETRIX &#8211; Specify a cache validator.<br \/>\nhttps:\/\/monosnap.com\/file\/NJkI9oOWlmehGYR0zM09qmhav8k0Gk<\/p>\n<p>The answer on the link did not work.<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/cache-validator-not-working-for-svg-and-woff-file-types\/<\/p>\n<p>https:\/\/monosnap.com\/file\/5eiOtXCrbC2oJwOlZhLTZ6XBCc43sS<br \/>\nhttps:\/\/monosnap.com\/file\/QDQRvNK5kj4G96fduN6sk1VgWh3ozl<\/p>\n<p>How can I solve this problem?<\/p>\n<p>best regards,<br \/>\nTahir<\/p>\n<pre><code>\n# BEGIN W3TC Page Cache core\n&lt;IfModule mod_rewrite.c&gt;\n    RewriteEngine On\n    RewriteBase \/\n    RewriteCond %{HTTPS} =on\n    RewriteRule .* - [E=W3TC_SSL:_ssl]\n    RewriteCond %{SERVER_PORT} =443\n    RewriteRule .* - [E=W3TC_SSL:_ssl]\n    RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]\n    RewriteRule .* - [E=W3TC_SSL:_ssl]\n    RewriteCond %{HTTP:Accept-Encoding} gzip\n    RewriteRule .* - [E=W3TC_ENC:_gzip]\n    RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]\n    RewriteRule .* - [E=W3TC_PREVIEW:_preview]\n    RewriteCond %{REQUEST_METHOD} !=POST\n    RewriteCond %{QUERY_STRING} =&quot;&quot;\n    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]\n    RewriteCond %{HTTP_USER_AGENT} !(W3\\ Total\\ Cache) [NC]\n    RewriteCond %{REQUEST_URI} \\\/$\n    RewriteCond &quot;%{DOCUMENT_ROOT}\/wp-content\/cache\/page_enhanced\/%{HTTP_HOST}\/%{REQUEST_URI}\/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}&quot; -F\n    RewriteRule .* &quot;\/wp-content\/cache\/page_enhanced\/%{HTTP_HOST}\/%{REQUEST_URI}\/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}&quot; [L]\n    RewriteCond %{REQUEST_METHOD} !=POST\n    RewriteCond %{QUERY_STRING} =&quot;&quot;\n    RewriteCond %{HTTP_COOKIE} !(comment_author|wp\\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]\n    RewriteCond %{HTTP_USER_AGENT} !(W3\\ Total\\ Cache) [NC]\n    RewriteCond &quot;%{DOCUMENT_ROOT}\/wp-content\/cache\/page_enhanced\/%{HTTP_HOST}\/%{REQUEST_URI}\/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}&quot; -F\n    RewriteRule .* &quot;\/wp-content\/cache\/page_enhanced\/%{HTTP_HOST}\/%{REQUEST_URI}\/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}&quot; [L]\n&lt;\/IfModule&gt;\n# END W3TC Page Cache core\n# BEGIN W3TC Browser Cache\n&lt;IfModule mod_mime.c&gt;\n    AddType text\/css .css\n    AddType text\/x-component .htc\n    AddType application\/x-javascript .js\n    AddType application\/javascript .js2\n    AddType text\/javascript .js3\n    AddType text\/x-js .js4\n    AddType text\/html .html .htm\n    AddType text\/richtext .rtf .rtx\n    AddType text\/plain .txt\n    AddType text\/xsd .xsd\n    AddType text\/xsl .xsl\n    AddType text\/xml .xml\n    AddType video\/asf .asf .asx .wax .wmv .wmx\n    AddType video\/avi .avi\n    AddType image\/bmp .bmp\n    AddType application\/java .class\n    AddType video\/divx .divx\n    AddType application\/msword .doc .docx\n    AddType application\/vnd.ms-fontobject .eot\n    AddType application\/x-msdownload .exe\n    AddType image\/gif .gif\n    AddType application\/x-gzip .gz .gzip\n    AddType image\/x-icon .ico\n    AddType image\/jpeg .jpg .jpeg .jpe\n    AddType image\/webp .webp\n    AddType application\/json .json\n    AddType application\/vnd.ms-access .mdb\n    AddType audio\/midi .mid .midi\n    AddType video\/quicktime .mov .qt\n    AddType audio\/mpeg .mp3 .m4a\n    AddType video\/mp4 .mp4 .m4v\n    AddType video\/mpeg .mpeg .mpg .mpe\n    AddType video\/webm .webm\n    AddType application\/vnd.ms-project .mpp\n    AddType application\/x-font-otf .otf\n    AddType application\/vnd.ms-opentype ._otf\n    AddType application\/vnd.oasis.opendocument.database .odb\n    AddType application\/vnd.oasis.opendocument.chart .odc\n    AddType application\/vnd.oasis.opendocument.formula .odf\n    AddType application\/vnd.oasis.opendocument.graphics .odg\n    AddType application\/vnd.oasis.opendocument.presentation .odp\n    AddType application\/vnd.oasis.opendocument.spreadsheet .ods\n    AddType application\/vnd.oasis.opendocument.text .odt\n    AddType audio\/ogg .ogg\n    AddType application\/pdf .pdf\n    AddType image\/png .png\n    AddType application\/vnd.ms-powerpoint .pot .pps .ppt .pptx\n    AddType audio\/x-realaudio .ra .ram\n    AddType image\/svg+xml .svg .svgz\n    AddType application\/x-shockwave-flash .swf\n    AddType application\/x-tar .tar\n    AddType image\/tiff .tif .tiff\n    AddType application\/x-font-ttf .ttf .ttc\n    AddType application\/vnd.ms-opentype ._ttf\n    AddType audio\/wav .wav\n    AddType audio\/wma .wma\n    AddType application\/vnd.ms-write .wri\n    AddType application\/font-woff .woff\n    AddType application\/font-woff2 .woff2\n    AddType application\/vnd.ms-excel .xla .xls .xlsx .xlt .xlw\n    AddType application\/zip .zip\n&lt;\/IfModule&gt;\n&lt;IfModule mod_expires.c&gt;\n    ExpiresActive On\n    ExpiresByType text\/css A31536000\n    ExpiresByType text\/x-component A31536000\n    ExpiresByType application\/x-javascript A31536000\n    ExpiresByType application\/javascript A31536000\n    ExpiresByType text\/javascript A31536000\n    ExpiresByType text\/x-js A31536000\n    ExpiresByType text\/html A3600\n    ExpiresByType text\/richtext A3600\n    ExpiresByType text\/plain A3600\n    ExpiresByType text\/xsd A3600\n    ExpiresByType text\/xsl A3600\n    ExpiresByType text\/xml A3600\n    ExpiresByType video\/asf A31536000\n    ExpiresByType video\/avi A31536000\n    ExpiresByType image\/bmp A31536000\n    ExpiresByType application\/java A31536000\n    ExpiresByType video\/divx A31536000\n    ExpiresByType application\/msword A31536000\n    ExpiresByType application\/vnd.ms-fontobject A31536000\n    ExpiresByType application\/x-msdownload A31536000\n    ExpiresByType image\/gif A31536000\n    ExpiresByType application\/x-gzip A31536000\n    ExpiresByType image\/x-icon A31536000\n    ExpiresByType image\/jpeg A31536000\n    ExpiresByType image\/webp A31536000\n    ExpiresByType application\/json A31536000\n    ExpiresByType application\/vnd.ms-access A31536000\n    ExpiresByType audio\/midi A31536000\n    ExpiresByType video\/quicktime A31536000\n    ExpiresByType audio\/mpeg A31536000\n    ExpiresByType video\/mp4 A31536000\n    ExpiresByType video\/mpeg A31536000\n    ExpiresByType video\/webm A31536000\n    ExpiresByType application\/vnd.ms-project A31536000\n    ExpiresByType application\/x-font-otf A31536000\n    ExpiresByType application\/vnd.ms-opentype A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.database A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.chart A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.formula A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.graphics A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.presentation A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.spreadsheet A31536000\n    ExpiresByType application\/vnd.oasis.opendocument.text A31536000\n    ExpiresByType audio\/ogg A31536000\n    ExpiresByType application\/pdf A31536000\n    ExpiresByType image\/png A31536000\n    ExpiresByType application\/vnd.ms-powerpoint A31536000\n    ExpiresByType audio\/x-realaudio A31536000\n    ExpiresByType image\/svg+xml A31536000\n    ExpiresByType application\/x-shockwave-flash A31536000\n    ExpiresByType application\/x-tar A31536000\n    ExpiresByType image\/tiff A31536000\n    ExpiresByType application\/x-font-ttf A31536000\n    ExpiresByType application\/vnd.ms-opentype A31536000\n    ExpiresByType audio\/wav A31536000\n    ExpiresByType audio\/wma A31536000\n    ExpiresByType application\/vnd.ms-write A31536000\n    ExpiresByType application\/font-woff A31536000\n    ExpiresByType application\/font-woff2 A31536000\n    ExpiresByType application\/vnd.ms-excel A31536000\n    ExpiresByType application\/zip A31536000\n&lt;\/IfModule&gt;\n&lt;IfModule mod_deflate.c&gt;\n    &lt;IfModule mod_setenvif.c&gt;\n        BrowserMatch ^Mozilla\/4 gzip-only-text\/html\n        BrowserMatch ^Mozilla\/4\\.0[678] no-gzip\n        BrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html\n        BrowserMatch \\bMSI[E] !no-gzip !gzip-only-text\/html\n    &lt;\/IfModule&gt;\n    &lt;IfModule mod_filter.c&gt;\n        AddOutputFilterByType DEFLATE text\/css text\/x-component application\/x-javascript application\/javascript text\/javascript text\/x-js text\/html text\/richtext text\/plain text\/xsd text\/xsl text\/xml image\/bmp application\/java application\/msword application\/vnd.ms-fontobject application\/x-msdownload image\/x-icon application\/json application\/vnd.ms-access video\/webm application\/vnd.ms-project application\/x-font-otf application\/vnd.ms-opentype application\/vnd.oasis.opendocument.database application\/vnd.oasis.opendocument.chart application\/vnd.oasis.opendocument.formula application\/vnd.oasis.opendocument.graphics application\/vnd.oasis.opendocument.presentation application\/vnd.oasis.opendocument.spreadsheet application\/vnd.oasis.opendocument.text audio\/ogg application\/pdf application\/vnd.ms-powerpoint image\/svg+xml application\/x-shockwave-flash image\/tiff application\/x-font-ttf application\/vnd.ms-opentype audio\/wav application\/vnd.ms-write application\/font-woff application\/font-woff2 application\/vnd.ms-excel\n    &lt;IfModule mod_mime.c&gt;\n        # DEFLATE by extension\n        AddOutputFilter DEFLATE js css htm html xml\n    &lt;\/IfModule&gt;\n    &lt;\/IfModule&gt;\n&lt;\/IfModule&gt;\n&lt;FilesMatch &quot;\\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$&quot;&gt;\n    FileETag MTime Size\n    &lt;IfModule mod_headers.c&gt;\n        Header set Pragma &quot;public&quot;\n        Header append Cache-Control &quot;public&quot;\n         Header unset Set-Cookie\n         Header set X-Powered-By &quot;W3 Total Cache\/0.13.1&quot;\n    &lt;\/IfModule&gt;\n&lt;\/FilesMatch&gt;\n&lt;FilesMatch &quot;\\.(html|htm|rtf|rtx|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|TXT|XSD|XSL|XML)$&quot;&gt;\n    FileETag MTime Size\n    &lt;IfModule mod_headers.c&gt;\n        Header set Pragma &quot;public&quot;\n        Header append Cache-Control &quot;public&quot;\n         Header set X-Powered-By &quot;W3 Total Cache\/0.13.1&quot;\n    &lt;\/IfModule&gt;\n&lt;\/FilesMatch&gt;\n&lt;FilesMatch &quot;\\.(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)$&quot;&gt;\n    FileETag MTime Size\n    &lt;IfModule mod_headers.c&gt;\n        Header set Pragma &quot;public&quot;\n        Header append Cache-Control &quot;public&quot;\n         Header unset Set-Cookie\n         Header set X-Powered-By &quot;W3 Total Cache\/0.13.1&quot;\n    &lt;\/IfModule&gt;\n&lt;\/FilesMatch&gt;\n&lt;FilesMatch &quot;\\.(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)$&quot;&gt;\n    FileETag None\n    &lt;IfModule mod_headers.c&gt;\n         Header unset ETag\n         Header unset Last-Modified\n    &lt;\/IfModule&gt;\n&lt;\/FilesMatch&gt;\n&lt;IfModule mod_headers.c&gt;\n    Header set Strict-Transport-Security &quot;max-age=31536000&quot;\n    Header set Referrer-Policy &quot;no-referrer-when-downgrade&quot;\n&lt;\/IfModule&gt;\n# END W3TC Browser Cache\n# BEGIN W3TC Skip 404 error handling by WordPress for static files\n&lt;IfModule mod_rewrite.c&gt;\n    RewriteEngine On\n    RewriteCond %{REQUEST_FILENAME} !-f\n    RewriteCond %{REQUEST_FILENAME} !-d\n    RewriteCond %{REQUEST_URI} !(robots\\.txt|[a-z0-9_\\-]*sitemap[a-z0-9_\\.\\-]*\\.(xml|xsl|html)(\\.gz)?)\n    RewriteCond %{REQUEST_URI} \\.(css|htc|less|js|js2|js3|js4|html|htm|rtf|rtx|txt|xsd|xsl|xml|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)$ [NC]\n    RewriteRule .* - [L]\n&lt;\/IfModule&gt;\n# END W3TC Skip 404 error handling by WordPress for static files\n# BEGIN W3TC CDN\n&lt;FilesMatch &quot;\\.(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)$&quot;&gt;\n   &lt;IfModule mod_rewrite.c&gt;\n      RewriteEngine On\n      RewriteCond %{HTTPS} !=on\n      RewriteRule .* - [E=CANONICAL:http:\/\/%{HTTP_HOST}%{REQUEST_URI},NE]\n      RewriteCond %{HTTPS} =on\n      RewriteRule .* - [E=CANONICAL:https:\/\/%{HTTP_HOST}%{REQUEST_URI},NE]\n   &lt;\/IfModule&gt;\n   &lt;IfModule mod_headers.c&gt;\n      Header set Link &quot;&lt;%{CANONICAL}e&gt;; rel=\\&quot;canonical\\&quot;&quot;\n   &lt;\/IfModule&gt;\n&lt;\/FilesMatch&gt;\n&lt;IfModule mod_headers.c&gt;\n    Header set Access-Control-Allow-Origin &quot;*&quot;\n&lt;\/IfModule&gt;\n# END W3TC CDN\n\n# BEGIN W3TC Page Cache cache\nOptions -MultiViews\n&lt;Files ~ &quot;\\.(html|html_gzip|html_br|xml|xml_gzip|xml_br)$&quot;&gt;\n  Require all granted\n&lt;\/Files&gt;\nEnableSendfile Off \nAddDefaultCharset UTF-8\nFileETag MTime Size\n&lt;IfModule mod_mime.c&gt;\n    AddType text\/html .html_gzip\n    AddEncoding gzip .html_gzip\n    AddType text\/xml .xml_gzip\n    AddEncoding gzip .xml_gzip\n&lt;\/IfModule&gt;\n&lt;IfModule mod_setenvif.c&gt;\n    SetEnvIfNoCase Request_URI \\.html_gzip$ no-gzip\n    SetEnvIfNoCase Request_URI \\.xml_gzip$ no-gzip\n&lt;\/IfModule&gt;\n&lt;IfModule mod_expires.c&gt;\n    ExpiresActive On\n    ExpiresByType text\/html M3600\n&lt;\/IfModule&gt;\n&lt;IfModule mod_headers.c&gt;\n    Header set X-Pingback &quot;https:\/\/doyuk.com\/xmlrpc.php&quot;\n    Header set X-Powered-By &quot;W3 Total Cache\/0.13.1&quot;\n    Header set Vary &quot;Accept-Encoding, Cookie&quot;\n    Header set Pragma &quot;public&quot;\n    Header append Cache-Control &quot;public&quot;\n&lt;\/IfModule&gt;\n# END W3TC Page Cache cache\n<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-12964102","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12964102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12964102\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12964102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}