nginx-helper icon indicating copy to clipboard operation
nginx-helper copied to clipboard

PWA compatibility to purge home page automatically

Open yogeshbeniwal opened this issue 3 years ago • 1 comments

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

yogeshbeniwal avatar May 10 '21 16:05 yogeshbeniwal

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.

danish17 avatar Feb 01 '23 22:02 danish17