Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

missing cache validator #563

Open
VirtualLaw opened this issue Mar 4, 2018 · 0 comments
Open

missing cache validator #563

VirtualLaw opened this issue Mar 4, 2018 · 0 comments

Comments

@VirtualLaw
Copy link

VirtualLaw commented Mar 4, 2018

GTMetrix / Page Speed complain:
The following resources are missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation for the following resources: ico, woff.

W3TC adds this to the htaccess:

<FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|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|WEBP|JSON|MDB|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>

Question:

This setting was recommend by askapache a while ago, but isn't recommend any more. Could the "Header unset Last-Modified" be removed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant