I have the error such as
2localhost/:1 Failed to decode downloaded font: http://localhost:9000/fonts/Gotham-Bold.otf
2localhost/:1 Failed to decode downloaded font: http://localhost:9000/fonts/Gotham-Light.otf
2localhost/:1 Failed to decode downloaded font: http://localhost:9000/fonts/Gotham-Medium.otf
2localhost/:1 Failed to decode downloaded font: http://localhost:9000/fonts/GothamRnd-Bold.otf
2localhost/:1 Failed to decode downloaded font: http://localhost:9000/fonts/Gotham-Book.otf
even though it says 200 OK on the server.
I am using NodeJS and ExpressJS on the backend.
When I just open an index.html with css linked to the font. it works just fine.
Here is the request response information:
Remote Address:[::1]:9000
Request URL:http://localhost:9000/fonts/Gotham-Bold.otf
Request Method:GET
Status Code:304 Not Modified
Response Headers
view source
Accept-Ranges:bytes
Cache-Control:public, max-age=0
Connection:keep-alive
Date:Mon, 08 Jun 2015 18:41:29 GMT
ETag:"9226-1433787686000"
Last-Modified:Mon, 08 Jun 2015 18:21:26 GMT
X-Powered-By:Express
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:connect.sid=s%3AkxBebHQL5GFXk6Fjm8zun7fu.F%2FK57o6MZr2wQx1lwxPlp1CCiXxpm4%2BSEdBlO%2FHifss
Host:localhost:9000
If-Modified-Since:Mon, 08 Jun 2015 18:21:26 GMT
If-None-Match:"9226-1433787686000"
Referer:http://localhost:9000/app/app.css
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36