Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Gitea 1.20 (gitea.com)
25 points by jacopoj on July 16, 2023 | hide | past | favorite | 5 comments


Gitea is an amazing project... I tried self hosting gitlab years ago and quickly realised it was flake city... Gitea was up and running in minutes. Bonus points for being written in Golang and deployed as a single binary ... F'ing love one-shot Golang binaries!


> We've removed the service worker functionality as it didn't bring any noticeable benefit, mostly added bugs, and was disabled since 1.17 by default already.

Anyone have any info on what this was alleged to help with? Sad to see a regression like this. There should be great potential here.


The comment for the option in the Gitea config file says that service workers were used to cache frontend assets.

However, the PR that disabled it by default noted that enabling service workers caused JS errors after Gitea instance upgrades. The PR also noted that service workers didn't provide any benefit over regular HTTP caching.


Service workers are great. Quite strange how they would remove it. It would dramatically speed up the site for any slow hosts.


A browser's HTTP cache works similar to a service worker cache, except that there are clear ways to invalidate via headers, while the APIs to invalidate the service worker cache are obscure and stale cache had caused multiple issues in the past.

I agree that SW can work if you write your UI around them, but Gitea isn't really such an UI.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: