How do I configure GitHub pages for decompression?

I’m trying to host on GitHub pages and am having the exact same issue as in this thread . The last post explains that the problem is caused by incorrectly configured servers and points to the corresponding manual page.

That only includes configurations for Apache and IIS though, can somebody explain to me how you would configure the GitHub pages server? I’d like to avoid using fallback decompression if at all possible. It’s a pretty popular hosting option and there’s tons of tutorials showing how simple it should be to set up, but none of them even mention this issue.

UPDATE:

Apparently that’s not the only issue. I just fired it up on Apache with the proper configuration, but it still gets stuck the same way.

Release.framework.js.gz:1 Uncaught SyntaxError: Invalid or unexpected token
Release.loader.js:1 Uncaught ReferenceError: unityFramework is not defined
    at HTMLScriptElement.r.onload (Release.loader.js:1)
Release.loader.js:1 [UnityCache] 'http://127.0.0.1/Build/Release.data.gz' successfully revalidated and served from the indexedDB cache

UPDATE 2:

Fixed the Apache Problem. I didn’t know you had to manually enable the .htaccess file override in the Apache configuration, might want to consider adding that to this page: Unity - Manual: Deploy WebGL application

Also make sure to clear your browser cache after setting the override and restarting Apache, otherwise you will still be stuck.

Hello, can you tell me how you did this?
I can’t find any info on how to set up .htaccess on Github Pages