0

These fonts load perfectly fine when the server is running OR when the client is offline. But as soon as I shut down my server (let's assume it can't be contacted because it's down) the fonts break and this is what I get in console:

Application Cache Error event: Manifest fetch failed (-1) [URL]

and

Resource interpreted as Font but transferred with MIME type text/html: [URL]

I'm running a localhost and I can only assume that this will be the behavior in the wild since even when I'm offline it still checks the Manifest like so in the console:

Document was loaded from Application Cache with manifest [URL]

Application Cache Checking event

Application Cache NoUpdate event

Can anyone shed some light on this?

Bart
  • 19,692
  • 7
  • 68
  • 77
mattdlockyer
  • 6,984
  • 4
  • 40
  • 44

1 Answers1

1

The manifest fetched failed error always happens when you go offline. The second error means that the fonts were not received as the correct MIME type, so you will need to add a .htaccess or something that will set the mime types correctly. Also make sure that the file extension for the fonts is correct.

markasoftware
  • 12,292
  • 8
  • 41
  • 69
  • When the server is up no mime type errors. Could this be a problem with Google Chrome storing the files from the manifest incorrectly? Doubt it. I'll check the mimes and extensions and upvote if it makes it work! Thanks for your suggestions. – mattdlockyer Feb 22 '13 at 02:03
  • The extension was using a version flag and didn't work properly, so you are correct. .otf?v=3.2.2 vs. .otf – mattdlockyer Apr 02 '13 at 17:41