-
Notifications
You must be signed in to change notification settings - Fork 27
varnish + serviceworker #17
Comments
Try visiting As for shopping cart being emptied, that shouldn't be related to the service worker. Sounds like there's a session permanence issue, which could be caused by sessions failing to save (check that the file permissions on Tomas |
Hi Tomas, |
Hi @webdawe , The likely cause of your Varnish woes and this extension is your Varnish config and how it handles ".js" files. There are several possible solutions for you regarding this, but here's one that should work for you: Edit your Varnish VCL file and add something like this near the top of your vcl_recv function but before your javascript handling:
That is because I've also changed the frontname in app/code/community/Meanbee/PWA/etc/config.xml from serviceworker.js to simply serviceworker. Doing this bypasses the Varnish js stuff and allows Magento 1 to render the layout and template file. Anyway, as I said, that is just one possible solution to your reported issue. @tgerulaitis nice work and thanks for this, would love to see this idea developed more! |
hi @tgerulaitis ,
I am having troubles when enabling PWA with varnish cache.
and shopping cart is getting empty / products removed etc.
Have you heard anything like that?
please let me know.
Anil
The text was updated successfully, but these errors were encountered: