WOFF and WOFF2 Font Missing Cache-Control
-
Hello, I have the same issue as this:
https://www.ads-software.com/support/topic/woff-and-woff2-font-missing-cache-control/
Pretty sure its a W3 bug, maybe this information helps fixing it: I uploaded “wp-content/fonts/*.woff2” via custom files list to S3. All fonts are missing the cache control header, EXCEPT for one font in the bucket, very strange behavior. I could verify the same behavior with another folder that has two fonts – one of the fonts has the header, the other doesn’t. Manually adding the meta data on S3 works without a problem but is kinda tedious.
“Set expires header” for Media is enabled in browser cache options.
Nginx:
location ~ \.(ttf|ttc|otf|eot|woff|woff2|font.css)$ {
expires 31536000s;
etag on;
if_modified_since exact;
add_header Pragma “public”;
add_header Cache-Control “public”;
add_header Access-Control-Allow-Origin “*”;
}
- The topic ‘WOFF and WOFF2 Font Missing Cache-Control’ is closed to new replies.