Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

For PWA, Service Worker for Publish instance on AEMaaCS not working

Avatar

Level 4

I have setup PWA for my site on AEMaaCS. On author, both my service worker and manifest files are being rendered. But when it comes to the case of publish instance, it shows the following error:
Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('publish-url') with script ('publish-url'): The script resource is behind a redirect, which is disallowed.

Due to this, the manifest file is also not working resulting into the error "Failed to load resource: the server responded with a status of 404 ()".

I have followed the same configurations on my local environment and it works fine. What can be the case for Cloud Environment?

0 Replies