Closed Bug 617791 Opened 15 years ago Closed 14 years ago

Cache the woff out of fonts on mozilla.com

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jbalogh, Assigned: abuchanan)

References

()

Details

This may be an IT bug, but I think mozcom has font stuff in a .htaccess so I'm filing here. Fonts are not getting cached in my Firefox, and I can't tell why. curl -I https://www.mozilla.com/img/fonts/MetaWebPro-Black.woff -H 'Referer: https://addons.mozilla.org/' HTTP/1.1 200 OK Server: Apache X-Backend-Server: pm-web01 vary: Referer, Accept-Encoding Cache-Control: max-age=1209600 Content-Type: text/plain; charset=UTF-8 Date: Wed, 08 Dec 2010 23:31:18 GMT Expires: Wed, 22 Dec 2010 23:31:18 GMT Accept-Ranges: bytes Access-Control-Allow-Origin: * ETag: "a9fc-66023300" Last-Modified: Tue, 26 Oct 2010 21:00:28 GMT X-Cache-Info: caching Content-Length: 43516 Maybe it's the two-week expiry? Can we bump that up to something more reasonable like 10 years? Also, we should turn off gzip for .woff: it actually makes the 42K .woff go up to 43K. .woff is already compressed.
Here's the relevant lines from htaccess: <FilesMatch "\.(ttf|woff|eot)$"> Header append vary "Referer" ExpiresActive On ExpiresDefault "access plus 2 weeks" Header set Access-Control-Allow-Origin "*" </FilesMatch> Yes, 2 week expiry. Agreed, we can set it to much longer, and change file names if we need to change them for some (very unlikely) reason. If the files aren't being cached *at all* in your Firefox, I kinda doubt changing the expiry will help that. Sure, we can turn of gzip too (I think, once I figure out the setting for that)
I think switching to "access plus 10 years" is good enough for this bug. We'll figure out the rest in bug 619767. Can you take this Alex?
Assignee: nobody → abuchanan
r79678 on trunk
Keywords: qawanted
host-5-238:~ stephendonner$ curl -I https://www-trunk.stage.mozilla.com/img/fonts/MetaWebPro-Black.woff -H 'Referer:https://addons.mozilla.org' HTTP/1.1 200 OK Server: Apache X-Backend-Server: dm-cms03 Vary: Accept-Encoding Cache-Control: max-age=315360000, private, private Content-Type: text/plain; charset=UTF-8 Date: Tue, 28 Dec 2010 21:18:53 GMT Expires: Fri, 25 Dec 2020 21:18:53 GMT Accept-Ranges: bytes Access-Control-Allow-Origin: * ETag: "1bfb95-a9fc-6b05e880" Last-Modified: Thu, 16 Dec 2010 05:35:14 GMT X-Cache-Info: not cacheable; response specified "Cache-Control: private" Content-Length: 43516 qa-verified-trunk
Keywords: qawantedpush-needed
OS: Mac OS X → All
Hardware: x86 → All
r79989 on production
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: push-needed
Resolution: --- → FIXED
Prod: host-5-238:~ stephendonner$ curl -I https://www.mozilla.com/img/fonts/MetaWebPro-Black.woff -H 'Referer:https://addons.mozilla.org' HTTP/1.1 200 OK Date: Wed, 29 Dec 2010 00:13:48 GMT Server: Apache X-Backend-Server: pm-web03 Last-Modified: Tue, 26 Oct 2010 21:00:26 GMT ETag: "ce4cc6-a9fc-65e3ae80" Accept-Ranges: bytes Content-Length: 43516 Cache-Control: max-age=315360000 Expires: Sat, 26 Dec 2020 00:13:48 GMT Access-Control-Allow-Origin: * Content-Type: text/plain; charset=UTF-8 Set-Cookie: NSC_npa-dpn-ttm=4451663d3660;expires=Wed, 29-Dec-10 00:12:02 GMT;path=/ Verified FIXED.
Status: RESOLVED → VERIFIED
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.