Closed Bug 613546 Opened 14 years ago Closed 11 years ago

Enable caching of WOFF files on mozilla.org

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davidwboswell, Unassigned)

Details

I've received several comments about how there's a problem with the site because the text style is adjusting each time someone loads a page.  

This appears to just be a problem with how the WOFF file is being loaded -- a default font is displayed until the WOFF file finished downloading.  This is just a guess though -- this may be unrelated to the WOFF file downloading.

Is there anything we can do to minimize this?  Perhaps having the WOFF file cached so the adjusting only happens on the initial page load?  Maybe there's something else we could try?
Firebug is showing the WOFF font requests with:
 X-Cache-Info:	not cacheable; response code not cacheable

While, the same files when loaded from mozilla.com, rather than .org, show:
 X-Cache-Info:	caching

Need to figure out why.
A bit more info, for the record. It looks like the request (according to Firebug) when loading from mozilla.org includes:

"Cache-Control	max-age=0"

While the same requests from mozilla.com do not include Cache-Control info.
Summary: Text style adjusts as page loads → Enable caching of WOFF files on mozilla.org
Possibly related: Bug 620688
OS: Mac OS X → All
Hardware: x86 → All
This is being address in Bug 619767.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Bug 619767 doesn't cover the max-age=0 thing, as far as I can see....
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
So this looks like it was two separate issues -- a referrer check and a cache issue?

To confirm, the patch that fixed bug 619767 fixes the referrer check for both mozilla.com and mozilla.org sites?  Looked like it from the regex, but that's not my strong suit :)

So for the max-age issue, what are next steps for addressing that?
Closing old Mozilla.org website bugs due to them not being relevant to the new Python-based Bedrock system. Re-open if this is a critical bug and should be resolved on the new system too.
Status: REOPENED → RESOLVED
Closed: 14 years ago12 years ago
Resolution: --- → WONTFIX
I'll repeat:

  So for the max-age issue, what are next steps for addressing that?
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
I think this issue has been fixed at some point. I can see a max-age like this:

Cache-Control: max-age=23932670
X-Cache-Info: caching

http://mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.woff?2013
Status: REOPENED → RESOLVED
Closed: 12 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.