---
title: "Self-Host Google Fonts"
description: Serve Google Fonts from your own WordPress site with Powered Cache Premium. Learn how fonts are downloaded, cached and refreshed, and why it helps privacy.
url: "https://poweredcache.com/docs/self-host-google-fonts/"
updated: "2026-12-02"
category: File Optimization
---

# Self-Host Google Fonts

Self-host Google Fonts downloads the Google Fonts your site uses and serves them from your own domain. Visitors' browsers no longer connect to Google to get fonts. That removes a third-party connection from every page view and keeps visitors' IP addresses away from Google.

**Available in:** Powered Cache Premium
**Where to find it:** Powered Cache → File Optimization → Fonts

## How self-hosting works

1. When WordPress builds a page that uses a Google Fonts stylesheet (`fonts.googleapis.com/css…`) or a Bunny Fonts stylesheet, Powered Cache downloads that stylesheet once on the server.
2. It downloads every font file the stylesheet points to (WOFF2, WOFF, TTF, OTF or EOT from `fonts.gstatic.com` or `fonts.bunny.net`).
3. It saves the files in `wp-content/cache/powered-cache/google-fonts/` and rewrites the stylesheet to use the local font files.
4. The page then links to the local stylesheet instead of Google. Both enqueued stylesheets and `<link>` tags written into templates are replaced.

The downloaded copies are kept for 30 days. After that, they are downloaded again the next time a page needs them, so font updates from Google reach your site. Because page caching stores the finished page, the download happens only while a page is built, not on every visit.

## Turn on self-hosting

1. Go to **Powered Cache → File Optimization**.
2. In the **Fonts** group, turn on **Self-host Google Fonts** (*Cache Google Fonts locally*).
3. Optionally keep [Combine Google Fonts](/docs/google-fonts-optimization/#combine-google-fonts) and [Font Display Swap](/docs/google-fonts-optimization/#font-display-swap) on. The combined request is the one that gets self-hosted.
4. Click **Save Settings** and [clear the cache](/docs/clear-cache/).
5. Open a page in a private window, then view the page source. The font stylesheet should now load from `/wp-content/cache/powered-cache/google-fonts/`.

**Default: off.** When Powered Cache Premium is active, **Apply Recommended Settings** turns it on.

## Self-hosting, Bunny Fonts or Combine?

Combining only reduces the number of requests to Google. Bunny Fonts sends the requests to another provider instead of Google. Self-hosting is the only option where visitors connect to no font provider at all, which makes it the best choice when privacy rules such as the GDPR matter to you. See [Which option should I choose?](/docs/google-fonts-optimization/#which-option) and [Google Fonts and privacy](/docs/google-fonts-optimization/#privacy).

## What is not self-hosted

- Fonts loaded by JavaScript, such as the Web Font Loader.
- Fonts imported inside another CSS file with `@import`.
- Font services other than Google Fonts and Bunny Fonts, such as Adobe Fonts.

For these, switch the theme or plugin to locally hosted fonts in its own settings.

## Troubleshooting

### Pages still load fonts from Google

Powered Cache never breaks your fonts when a download fails. If the stylesheet cannot be downloaded, the page keeps the original Google address and Powered Cache tries again after about five minutes. If a single font file cannot be downloaded, the local stylesheet keeps the Google address for that file until the local copy is refreshed. Downloads fail when:

- your server cannot reach `fonts.googleapis.com` and `fonts.gstatic.com` (outgoing connections blocked by the host or a firewall), or a request takes longer than 5 seconds,
- the `wp-content/cache/` folder is not writable,
- a stylesheet is larger than 200 KB or a font file larger than 3 MB.

Fix the cause, then delete the `wp-content/cache/powered-cache/google-fonts/` folder so everything is downloaded again, [clear the cache](/docs/clear-cache/) and load the page. Also check the sources listed in [What is not self-hosted](#caveats).

### Fonts do not load when a CDN is used

Browsers block fonts loaded from another domain unless the server allows it. If your CDN serves the local font files, turn on CORS for fonts in [CDN integration](/docs/cdn-integration/#cors-for-fonts).

## For developers

Change how long downloaded fonts are kept with the `powered_cache_google_fonts_cache_ttl` filter (in seconds, at least one hour). See the [hooks reference](/docs/hooks-reference/).

## Related docs

- [Google Fonts optimization](/docs/google-fonts-optimization/)
- [Preload fonts](/docs/resource-hints/#preload-fonts)
- [CDN integration](/docs/cdn-integration/)
- [Install Powered Cache Premium](/docs/install-powered-cache-premium/)
