{"id":402187,"date":"2026-11-13T04:33:22","date_gmt":"2026-11-13T04:33:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/rocket-nginx-bridge\/"},"modified":"2026-11-14T08:52:22","modified_gmt":"2026-11-14T08:52:22","slug":"getpagespeed-cache-configuration","status":"publish","type":"plugin","link":"https:\/\/nl.wordpress.org\/plugins\/getpagespeed-cache-configuration\/","author":14041782,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.4.0","stable_tag":"1.4.0","tested":"7.1.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"GetPageSpeed Cache Configuration","header_author":"Danila Vershinin","header_description":"Generates Nginx configuration from page-cache plugin settings so Nginx can serve cached pages without PHP. Supports WP Rocket.","last_updated":"2026-11-14 08:52:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/dvershinin\/getpagespeed-cache-configuration","header_author_uri":"https:\/\/www.getpagespeed.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":181,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.1":{"tag":"1.2.1","author":"dvershinin","date":"2026-11-13 04:33:06","revision":3799655},"1.3.0":{"tag":"1.3.0","author":"dvershinin","date":"2026-11-13 05:25:16","revision":3799712},"1.4.0":{"tag":"1.4.0","author":"dvershinin","date":"2026-11-14 08:52:22","revision":3801558}},"upgrade_notice":{"1.4.0":"<p>Press &quot;Check Nginx include&quot; once after upgrading so the plugin learns whether Brotli is in use, then reload Nginx if it reports a regenerated configuration.<\/p>","1.3.0":"<p>Adds WP Super Cache support and an include check. The include line does not change; reload Nginx once to enable the check.<\/p>","1.2.0":"<p>The configuration file moved to the uploads directory. Update the Nginx include line shown under Settings &gt; GetPageSpeed Cache Configuration, then reload Nginx.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3799655,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3799655,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3799655,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3799655,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3799655,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner.svg":{"filename":"banner.svg","revision":3799655,"resolution":false,"location":"assets","locale":false}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.1","1.3.0","1.4.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[146,2437,3853,2636,54246],"plugin_category":[52,54],"plugin_contributors":[208097],"plugin_business_model":[],"class_list":["post-402187","plugin","type-plugin","status-publish","hentry","plugin_tags-cache","plugin_tags-nginx","plugin_tags-page-cache","plugin_tags-wp-super-cache","plugin_tags-wp-rocket","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-dvershinin","plugin_committers-dvershinin"],"banners":{"banner":"https:\/\/ps.w.org\/getpagespeed-cache-configuration\/assets\/banner-772x250.png?rev=3799655","banner_2x":"https:\/\/ps.w.org\/getpagespeed-cache-configuration\/assets\/banner-1544x500.png?rev=3799655","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/getpagespeed-cache-configuration\/assets\/icon.svg?rev=3799655","icon":"https:\/\/ps.w.org\/getpagespeed-cache-configuration\/assets\/icon.svg?rev=3799655","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>GetPageSpeed Cache Configuration generates the Nginx configuration that locates\npage-cache files on disk and serves them directly, without starting PHP.<\/p>\n\n<p>It works with WP Rocket and WP Super Cache. The plugin detects which one is\nactive and mirrors the settings that decide how cache files are named and when a\nrequest must bypass the cache. The cache plugin is still required to create and\npurge the page cache.<\/p>\n\n<p>A built-in check confirms that Nginx actually loaded the generated file, and\ntells you when Nginx has not been reloaded since the last change.<\/p>\n\n<p>The same check finds out whether Nginx compresses pages with Brotli. WP Rocket\nwrites gzip files only. When Brotli is in use, clients that accept it get the\npage compressed with Brotli by Nginx. When it is not, they get WP Rocket's\npre-compressed gzip file instead of a page that Nginx gzips again on every\nrequest.<\/p>\n\n<p>The WP Rocket template is derived from the MIT-licensed Rocket-Nginx project by\nMaxime Jobin and SatelliteWP. The WP Super Cache rules follow the conditions of\nthe Apache rules that WP Super Cache itself generates.<\/p>\n\n<p>This plugin is made by GetPageSpeed. It is not affiliated with or endorsed by\nWP Media (WP Rocket), Automattic (WP Super Cache), SatelliteWP (Rocket-Nginx),\nor F5 (NGINX).<\/p>\n\n<h4>Brotli<\/h4>\n\n<p>Brotli makes pages smaller than gzip, and Nginx needs a module for it. One is\navailable from the <a href=\"https:\/\/nginx-extras.getpagespeed.com\/modules\/brotli\/\">GetPageSpeed repository<\/a>,\na subscription service with a free 30-day trial. Any Brotli module works: the\nplugin looks for Brotli in the responses of your site, not for a particular\npackage.<\/p>\n\n<h4>Monitor your server<\/h4>\n\n<p>This plugin lets Nginx answer without PHP, but is Nginx itself healthy? If you\nrun your own server, <a href=\"https:\/\/amplify.getpagespeed.com\/?ref=gcc-amplify-readme\">GetPageSpeed Amplify<\/a>\ncharts its requests, errors and configuration issues over time, with a free tier.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload and activate the plugin.<\/li>\n<li>Open Settings &gt; GetPageSpeed Cache Configuration.<\/li>\n<li>Include the displayed <code>default.conf<\/code> path in the site's Nginx server block.<\/li>\n<li>Run <code>nginx -t<\/code> and reload Nginx.<\/li>\n<li>Press \"Check Nginx include\" on the settings page to confirm Nginx loaded the file.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20replace%20wp%20rocket%20or%20wp%20super%20cache%3F\"><h3>Does this replace WP Rocket or WP Super Cache?<\/h3><\/dt>\n<dd><p>No. The cache plugin creates and purges the cache files. This plugin lets Nginx\nlocate and serve those files without starting PHP.<\/p><\/dd>\n<dt id=\"which%20cache%20plugin%20is%20used%20when%20i%20switch%3F\"><h3>Which cache plugin is used when I switch?<\/h3><\/dt>\n<dd><p>The active one. The configuration is regenerated the next time you open the\nWordPress admin; reload Nginx afterwards.<\/p><\/dd>\n<dt id=\"do%20wp%20super%20cache%20settings%20apply%3F\"><h3>Do WP Super Cache settings apply?<\/h3><\/dt>\n<dd><p>Yes: compression, mobile device support, extra and rejected cookies, ignored\ntracking parameters and the \"disable caching for visitors who have a cookie\"\noption. Addresses containing uppercase letters are answered by PHP.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20reload%20nginx%3F\"><h3>Does the plugin reload Nginx?<\/h3><\/dt>\n<dd><p>No. Reloading the web server is deliberately left to the server operator.<\/p><\/dd>\n<dt id=\"i%20enabled%20brotli%20in%20nginx.%20what%20now%3F\"><h3>I enabled Brotli in Nginx. What now?<\/h3><\/dt>\n<dd><p>Press \"Check Nginx include\". The check sees Brotli in the response of the front\npage and regenerates the configuration; reload Nginx once more to apply it.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20contact%20external%20servers%3F\"><h3>Does the plugin contact external servers?<\/h3><\/dt>\n<dd><p>No. The checks request addresses on your own site only. The links to\nGetPageSpeed services on the settings page are plain links.<\/p><\/dd>\n<dt id=\"where%20is%20the%20configuration%20written%3F\"><h3>Where is the configuration written?<\/h3><\/dt>\n<dd><p>To the uploads directory: <code>wp-content\/uploads\/getpagespeed-cache-configuration\/default.conf<\/code>.\nThe generated configuration denies HTTP access to that file.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Detect whether Nginx compresses pages with Brotli as part of \"Check Nginx include\", and show the result on the settings page.<\/li>\n<li>WP Rocket: when Brotli is not in use, serve the pre-compressed gzip file to clients that accept Brotli instead of gzipping the page again on every request.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Add WP Super Cache support, selected automatically from the active cache plugin.<\/li>\n<li>Add a \"Check Nginx include\" button that confirms Nginx loaded the current configuration.<\/li>\n<li>Regenerate automatically when the active cache plugin changes.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Render the Nginx configuration from a plain placeholder template instead of a PHP template.<\/li>\n<li>Derive the public content folder from the content URL.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Rename to GetPageSpeed Cache Configuration.<\/li>\n<li>Write the configuration to the uploads directory. Update the Nginx include line once after upgrading.<\/li>\n<li>Rename options and hooks to the getpagespeed_cache_configuration_ prefix and migrate existing options automatically.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Rename options and hooks and migrate existing options automatically.<\/li>\n<li>Remove Update URI.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial standalone release.<\/li>\n<li>Generate configuration from WP Rocket settings.<\/li>\n<li>Fix query-string paths used with separate mobile caches.<\/li>\n<li>Add atomic writes and deny HTTP access to generated configuration files.<\/li>\n<\/ul>","raw_excerpt":"Generates Nginx configuration from page-cache plugin settings so Nginx can serve cached pages without PHP.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/402187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=402187"}],"author":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dvershinin"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=402187"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=402187"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=402187"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=402187"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=402187"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=402187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}