Skip to content

angular 8: aplicacion PWA error 404 not found ngsw-worke.js  #38529

@SalvadorBR

Description

@SalvadorBR

Hello,

I have a PWA application that worked perfectly, but now loading the application in production shows the following error:

https://drive.google.com/file/d/1MW2eTMfQfIGj5ncpO-nNPEiR4LAPWht_/view?usp=sharing

On the other hand, if I access the application from Chrome with an incognito window or CTRL + F5 then the application loads correctly.

I understand that it has something to do with the cache but I cannot configure the application to work properly without having to clear the cache or with a Chrome window in incognito.

On the other hand, in the local development environment everything works OK

The problems appear after building and uploading the application to the production server.

The content of the ngsw.json file can be seen in the following image:

https://drive.google.com/file/d/1WiC7ddw6Y6P2mhzfVmR9fqZ-wDO1T2d7/view?usp=sharing

The angular versión I'm working is:

Angular CLI: 8.3.17
Node: 12.13.0
OS: win32 x64

Please, can you help me?

The url aplication with this error is: https://residenciasuniversitarias.ulpgc.es/areaprivadapwa/login

Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: service-workerIssues related to the @angular/service-worker package

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions