apiengine / apiengine-client

Api Engine - Web Client - Turbo-charge your APIs with our secure & collaborative API document builder & distribution platform.
Coming soon
Other
36 stars 2 forks source link

Firefox Font Issues #12

Closed markhibberd closed 11 years ago

markhibberd commented 11 years ago

I am still getting the incorrect font in firefox. It is downloading all the font files again.

Does this just require an nginx change?

thomasdavis commented 11 years ago

I added in caching the other day and must of have it incorrectly configured. I nested these location settings and it works now but you might want to tell me if it's how it should be done.

location ~* ^.+\.(ico|jpg|jpeg|gif|png|css|js|eot|otf|ttf|woff)$ {
            access_log   off;
            expires      max;
            add_header Cache-Control public;
            location ~* \.(eot|otf|ttf|woff)$ {
                add_header Access-Control-Allow-Origin *;
            }
        }