Admin panel and Service Worker have crossed-wires

When using the Ghost Admin app/url, my posts are not updating correctly; some posts aren’t displayed, some deleted posts are displayed and the order in which the posts are displayed is incorrect.

I believe this is due to my blog’s service worker which caches and serves as much as it can, my version of the casper theme can be found here. I think that the most recent update to the Ghost Admin panel, which introduced the blog preview has caused this issue.

My question is, how can I easily stop this behaviour? The service worker acts as a straight forward network proxy, I’m hoping I’ll be able to look for a http header or something similar in order to filter all of my admin-panel traffic to bypass my caching strategy.

Ghost-CLI version: 1.11.0
Ghost version: 2.23.4
Chrome Version: 75.0.3770.90 (Official Build)

@Leoooob you need to modify your service worker so that all /ghost/* requests are passed through to the network, those requests should never be cached.

Thanks a lot Kevin.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.