Hummingbird - Expires headers


I'm trying to improve the speed of the website and I check the hummingbird report and we were thinking how to add expire headers to google fonts, analytics and facebook things? as it s one of the recommendation

  • Dimitris

    Hey there Mark,

    hope you're doing good today! :slight_smile:

    You can't control expires headers for content you're loading from a different site. Options you could consider are:

    1. Continue using external sites; in this case these are pretty well behaved and your performance will probably be pretty good. Just ignore the low grade that YSlow is giving you.
    2. Host your fonts and jQuery files locally, then set far-future expires headers as you've shown in your .htaccess. This would give you a better YSlow grade, but actual performance may be worse if your server is slower than the CDNs. (see this SO question)
    3. Use external sites but adjust your URL; in the case of jQuery, if you specify on more version level (1.8.0 instead of 1.8) you will get a far future expires header (see this SO question)


    Warm regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.