| 开发者 | oschaaf |
|---|---|
| 更新时间 | 2026年6月18日 14:55 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
Cache-Control: public, max-age=N to anonymous page responses (WordPress does not send this by default), with explicit bypasses for logged-in users, WooCommerce cart/checkout/account pages, search, feeds, and 404s.wp pagespeed flush|status|test-connection commands.proxy_cache, Varnish, or a CDN) plus ModifyCachingHeaders off or DownstreamCachePurgeLocationPrefix — with 1.1's default ModifyCachingHeaders on, the module replaces this plugin's Cache-Control header on rewritten HTML. On 1.1, the plugin's purge calls evict optimized sub-resources and metadata, not HTML pages.--api-port).wp pagespeed flush [--url=<url>] — purge the home page (and posts page), or one specific URL on this site.wp pagespeed status — detected product, version, license tier, purge prerequisites, and last-purge status.wp pagespeed test-connection — verify the admin API is reachable and correctly configured (read-only, never purges).No. Caching happens server-side: in the ModPageSpeed 2.0 module itself, or — on 1.1 — in your front cache (proxy_cache, Varnish, or CDN; the 1.1 module does not cache HTML, see the Description). The plugin only sets cache headers and sends purge requests — the same architecture as other server-layer cache plugins.
Not from the module alone. 1.1 never caches HTML; put an external cache (nginx proxy_cache, Varnish, or a CDN) in front of it and set ModifyCachingHeaders off (or use DownstreamCachePurgeLocationPrefix) so this plugin's Cache-Control headers reach that cache. The plugin's purge calls on 1.1 evict optimized sub-resources and metadata.
No. The setup wizard will guide you to the server module installation docs if no server is detected.