Hans Raaf

Results 419 comments of Hans Raaf

I copied and edited the middleware to emit an `X-Content-Length-Uncompressed` header. I think if you make a slight change to the code so we can send an extra header, it...

I build all of our apps and tested them. No regressions were found.

That is fine! I have another problem that could easily be solved by adding something similar: Modifying the service worker. Maybe you can make the name or the content customizable?

I know, but I want to be able to change how it works. For example, to change how the reacts to the user selecting an option from the push notification...

I thought of a way to change `appWorkerJS` to something the implementation can supply by adding an indirection for what is being used by the template. `app.AppWorkerJS=appWorkerJS` so the developer...

Yes, but then one has to get the standard code from somewhere, which may also change. I find it easier (and slightly more save) to take the existing code, apply...

I would prefer that it replaces the original and that one has access to the original one. ```go type Handler struct { // JavaScript code for the app-worker.js. If empty,...

> It looks like a nice trick but it doesn't work when the wasm is hosted on a remote bucket or when the app is hosted as a static website....

I rewrote the code loosely based on `https://stackoverflow.com/questions/65491241/get-webassembly-instantiatestreaming-progress` and tested it with some browsers. I was not looking too much into how to get the percentage process with compressing middleware...

I am using [Mage](https://magefile.org/) instead of Make on Mac, Linux, and Windows (with the same magefile and workflow) for quite some time now and would not want to go back....