Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workbox/workbox-window.prod.mjs not loading #238

Open
tacman opened this issue Sep 30, 2024 · 1 comment
Open

workbox/workbox-window.prod.mjs not loading #238

tacman opened this issue Sep 30, 2024 · 1 comment

Comments

@tacman
Copy link
Contributor

tacman commented Sep 30, 2024

Version(s) affected

1.3.x (and ^1.2)

Description

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts

https://ff.survos.com/workbox/workbox-window.prod.mjs

How to reproduce

https://ff.survos.com/events/index

I'm trying to debug why this doesn't have an "Install" option in the debug tools. Perhaps it's related to the above error with the workbox not being loaded.

Possible Solution

No response

Additional Context

pwa.yaml

pwa:
    image_processor: 'pwa.image_processor.imagick'
#    favicons:
#        enabled: true
#        src: assets/icons/symfony.svg

    manifest:
        enabled: true
        background_color: "#c026d3"
        theme_color: "#c026d3"
        name: 'Foothills Forum Photo collection'
        short_name: 'ff-photos'
        description: 'Foothills Forum Photo collection allows users to submit photos of local high school sporting events in Rappahannock'
        orientation: "any"
        display: "standalone"
        scope: "/"
        display_override: ['fullscreen', 'minimal-ui', 'window-controls-overlay']
        id: "/"
        start_url: "/"
        icons:
#            - https://www.svgrepo.com/svg/522368/camera
            - src: "images/camera-svgrepo-com.svg"
              sizes: any
#            - src: "images/space-planet-icon.svg"
#              sizes: any

        screenshots:
            - src: screenshots/screenshot-1200x1100.png
              width: 1200
              height: 1100
              format: image/png

        categories: []
        shortcuts: []
        edge_side_panel:
            preferred_width: 280
        widgets: []
    serviceworker:
        enabled: true
        src: "sw.js"
        skip_waiting: true
        workbox:
#            resource_caches:
#                - cache_name: page
#                  strategy: staleWhileRevalidate
#                  regex: 'what-should-this-becopose'
#                  urls:
#    #                    - {path: "app_planet_show", params: {id: 5}}
#                        - 'app_homepage'
#                        - 'app_terms'
#            offline_fallback:
#                page: 'app_homepage'
##                page: 'app_offline_page'
##                    image: 'images/offline.svg'
##                        font: 'fonts/normal.ttf'
@Spomky
Copy link
Member

Spomky commented Sep 30, 2024

Hi,

Is it the same issue as #217?
To me and because the satic files are directly served by the web server (Caddy, nginx...), it looks like it is a server configuration issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants