nginx-helper
nginx-helper copied to clipboard
PWA compatibility to purge home page automatically
Default configuration while using Nginx helper along with PWA plugin is causing start_url (home page in this case) to remain outdated and not updated even after publishing new post. While Category and Taxonomy URLs are purged automatically, home page is not and manual purge is required
I was unable to reproduce on:
- WordPress 6.1.1
- PHP 8.1.14 (fpm-fcgi)
- Nginx Helper v2.2.2
- PWA v0.7.1
The settings are Nginx Helper default:
- Caching Method: nginx Fastcgi cache
- Purge Method: Using a GET request
On making a cached request (without any post updations/additions/removals), I get x-fastcgi-cache: HIT
as expected.
Upon editing the post/adding a new post, I get x-fastcgi-cache: MISS
as expected.
I can also confirm that service working is behaving as expected, even if offline.