-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Use pre-gzipped content files? #1584
Comments
I use gulp-gzip package for make .gz files.
|
the constructor for |
@AnderssonPeter, yes, it was code for RC1.
|
Ill try it when i get home, but im using RTM not RC2 ill get back to you if this works in the RTM. Thanks @neyromant !! |
You are welcome. |
Im confused does asp.net core gzip content on the fly? Also it seems like the Invoke method is only called once so it never has a chance to replace the file paths with .gz |
I found small mistake in code: System.IO.File.Exists( |
Well some of my confusion has been lifted, the default project from visual studio runs IIS Express as a reverse proxy infront of Kestrel and IIS Express does automatic GZip compression on content. So that was the reason for files being gzipped even when there was no .gz file. Ill try your updated code when i get home and see if it works better! Thanks @neyromant |
@AnderssonPeter, You are welcome. |
I made some improvements to support Now i haven't been able to test brotli for some reason its only used on
|
@neyromant is it ok if i create a github page with this code? and if any license you would prefer? |
@AnderssonPeter, Of course, you can create a page and nuget package. |
Github page is up for it: https://github.com/AnderssonPeter/CompressedStaticFiles haven't managed to add nuget yet tho. |
And its up on nuget https://www.nuget.org/packages/CompressedStaticFiles/ |
@AnderssonPeter
Any clue? |
i don't know any thing about Azure but i guess it uses IIS? |
I am using IIS indeed, thanks for the reply, I also realized this won't work. |
@Ponant i merged AnderssonPeter/CompressedStaticFiles#4 sometime ago so it might work now but im not 100% sure. |
Thanks @PeterDefendo , but where are the instructions that I try out your merge? Is it here--> |
@Ponant sorry i happend to write with my work github account :P sorry about the confusion, its in the official nuget package |
This issue is being closed because it has not been updated in 3 months. We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate. |
@aspnet-hello fuck stupid bots |
is there any support for pre-gzipped files if there where we could compress css, html and javascript files with
zopfli
to make then as small as possible.the files could be saved as
[filename]_[hash].gzip
or some like that.If there is support how would one go about to enable it?
If there isn't do you have any tips on how to create it?
The text was updated successfully, but these errors were encountered: