Skip to content

serviceworker.js failed to register (on windows) #18347

Closed
@snoopydo

Description

@snoopydo

Gitea Version

1.16.0-rc1

Git Version

git version 2.34.1.windows.1

Operating System

Windows 10 21H1 (build 19043.1466)

How are you running Gitea?

Downloaded gitea-1.16.0-rc1-gogit-windows-4.0-amd64.exe from the github releases page.
stopped windows service
Copied over top to replace existing gitea.exe
restarted windows service

Database

MSSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

In edge & chrome, the serviceworker.js fails to install with an error logged to the console.

DOMException: Failed to register a ServiceWorker for scope ('http://localhost:3000/assets/') with script ('http://localhost:3000/assets/serviceworker.js'): The script has an unsupported MIME type ('text/plain').

First appeared when i installed version 1.15.10

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions