pwa-for-wp icon indicating copy to clipboard operation
pwa-for-wp copied to clipboard

Block theme 404

Open vontainment opened this issue 2 years ago • 4 comments

In the PWA file with the setting for 404 page set to default it is set as the homepage. This causes a block theme with a 404 template to show the homepage instead. I think the default setting for the 404 page should be set to nothing so the 404 template will work.

vontainment avatar Nov 19 '22 13:11 vontainment

After testing a bit more. It looks like the PWA is caching the homepage / and serving it as 404. The first 404 error works right, the rest don't but if I control shift refresh to bypass cache it works.

vontainment avatar Nov 19 '22 13:11 vontainment

Any update on this? I am still facing this issue. Thanks.

radiogyan avatar Jan 18 '23 15:01 radiogyan

once a 404 page is reached the rest are forwarded to home page and so are 410 so this plugin destroys SEO. even if set to netwrok only it still caches / as the 404 page and treats 410 as 404

vontainment avatar Jan 18 '23 21:01 vontainment

is there a way we can turn off the 404 caching adding something to function.php?

vontainment avatar Jan 18 '23 21:01 vontainment