Expired Headers

I get these showing up under “Add Expires Headers” in GT Metrix.

There are 4 static components without a far-future expiration date.

https://fonts.googleapis.com/css?family=Raleway%3A100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900%2C300italic%2C400italic%2C700italic|Dosis%3A100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900%2C300italic%2C400italic%2C700italic|Roboto%3A100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900%2C300italic%2C400italic%2C700italic|Noto%20Sans%3A100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900%2C300italic%2C400italic%2C700italic|Open%20Sans&subset=latin%2Clatin-ext
https://fonts.googleapis.com/css?family=Open+Sans

How do I add expired headers for these items? I’ve already hired a coder on Freelancer and he was unable to do it.

Those are 3rd party assets. You can import those locally or ignore those. You can rarely control what the expires headers are for resources not hosted on your server. Simply because any rules in a htaccess… will only affect things on your server.

And your other options would be to move around where in your template those external fonts are called.

Usually 3rd party assets don’t worth the time, most of them should be ignored

For the most part, if you only have 4 components that show up there, it’s not something you need to spend a lot of time on. You won’t see much (or any) improvement. If you really need to, you can download these stylesheets and assets to your own hosting server, change HTML tags accordingly.

Then, you can set expiration headers as you wish.