Add Expires headers For Google Fonts In .htaccess

How to add Add Expires headers For This Google Font

https://fonts.googleapis.com/css?family=Nunito:300,400,600,700,800,900|Poppins:300,400,500,600,700,800,900&display=swap

is it possible to Add Expires headers in .htaccess

Screenshot From GTMETRIX

sorry for my bad language

Upvotes: 0

Views: 745

Answers (1)

Richard Collinson
Richard Collinson

Reputation: 1

You cannot change the headers for requests you're not responding to. In this case, the browser will make a request to Google asking for fonts. The browser will receive a response from Google(not you) with headers(cache, encoding, etc) and body(actual resource).

Don't forget these tools point you in the right direction but are not always aware of the whole picture. When you share resources with other sites, the user may already have the requested resources cached.

Upvotes: 0

Related Questions