├── .gitattributes ├── .github ├── FUNDING.yml └── workflows │ ├── codeql-analysis.yml │ └── test.yml ├── .gitignore ├── CompressedStaticFiles.Tests ├── CompressedStaticFileMiddlewareTests.cs ├── CompressedStaticFiles.Tests.csproj ├── ImageCompressedStaticFileMiddlewareTests.cs └── wwwroot │ ├── IMG_6067.avif │ ├── IMG_6067.jpg │ ├── IMG_6067.webp │ ├── favicon.avif │ ├── favicon.ico │ ├── favicon.ico.br │ ├── favicon.ico.gz │ ├── favicon.png │ ├── favicon.webp │ ├── generate_highquality.bat │ ├── highquality.avif │ ├── highquality.jpg │ ├── highquality.png │ ├── highquality.webp │ ├── i_also_exist_compressed.html │ ├── i_also_exist_compressed.html.br │ ├── i_also_exist_compressed.html.gz │ ├── i_am_smaller_in_uncompressed.html │ ├── i_am_smaller_in_uncompressed.html.br │ ├── i_exist_only_uncompressed.html │ ├── icon.avif │ ├── icon.png │ ├── icon.webp │ ├── with spaces.html │ ├── with spaces.html.br │ └── with spaces.html.gz ├── CompressedStaticFiles.sln ├── CompressedStaticFiles ├── AlternativeImageFile.cs ├── AlternativeImageFileProvider.cs ├── CompressedAlternativeFile.cs ├── CompressedAlternativeFileProvider.cs ├── CompressedStaticFileExtensions.cs ├── CompressedStaticFileMiddleware.cs ├── CompressedStaticFileOptions.cs ├── CompressedStaticFiles.csproj ├── IAlternativeFileProvider.cs ├── IFileAlternative.cs ├── LoggerExtensions.cs └── icon.png ├── Example ├── Example.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json ├── gulpfile.js ├── images │ ├── IMG_6067.jpg │ ├── favicon.ico │ ├── favicon.png │ └── icon.png ├── package-lock.json ├── package.json └── wwwroot │ ├── IMG_6067.avif │ ├── IMG_6067.jpg │ ├── IMG_6067.webp │ ├── cover.css │ ├── favicon.ico │ ├── favicon.png │ ├── favicon.webp │ ├── icon.png │ ├── icon.webp │ ├── index.html │ └── style.css ├── LICENSE ├── README.md ├── global.json └── icon.svg /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: AnderssonPeter 2 | custom: ['https://www.paypal.com/donate?business=USVBQ3MG9HFLQ'] 3 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/.gitignore -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/CompressedStaticFileMiddlewareTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/CompressedStaticFileMiddlewareTests.cs -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/CompressedStaticFiles.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/CompressedStaticFiles.Tests.csproj -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/ImageCompressedStaticFileMiddlewareTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/ImageCompressedStaticFileMiddlewareTests.cs -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/IMG_6067.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/IMG_6067.avif -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/IMG_6067.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/IMG_6067.jpg -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/IMG_6067.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/IMG_6067.webp -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/favicon.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/favicon.avif -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/favicon.ico -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/favicon.ico.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/favicon.ico.br -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/favicon.ico.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/favicon.ico.gz -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/favicon.png -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/favicon.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/favicon.webp -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/generate_highquality.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/generate_highquality.bat -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/highquality.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/highquality.avif -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/highquality.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/highquality.jpg -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/highquality.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/highquality.png -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/highquality.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/highquality.webp -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/i_also_exist_compressed.html: -------------------------------------------------------------------------------- 1 | uncompressed -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/i_also_exist_compressed.html.br: -------------------------------------------------------------------------------- 1 | br -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/i_also_exist_compressed.html.gz: -------------------------------------------------------------------------------- 1 | gzip -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/i_am_smaller_in_uncompressed.html: -------------------------------------------------------------------------------- 1 | uncompressed -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/i_am_smaller_in_uncompressed.html.br: -------------------------------------------------------------------------------- 1 | br is longer than uncompressed in this case -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/i_exist_only_uncompressed.html: -------------------------------------------------------------------------------- 1 | uncompressed -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/icon.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/icon.avif -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/icon.png -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/icon.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.Tests/wwwroot/icon.webp -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/with spaces.html: -------------------------------------------------------------------------------- 1 | uncompressed -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/with spaces.html.br: -------------------------------------------------------------------------------- 1 | br -------------------------------------------------------------------------------- /CompressedStaticFiles.Tests/wwwroot/with spaces.html.gz: -------------------------------------------------------------------------------- 1 | gzip -------------------------------------------------------------------------------- /CompressedStaticFiles.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles.sln -------------------------------------------------------------------------------- /CompressedStaticFiles/AlternativeImageFile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/AlternativeImageFile.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/AlternativeImageFileProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/AlternativeImageFileProvider.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/CompressedAlternativeFile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/CompressedAlternativeFile.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/CompressedAlternativeFileProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/CompressedAlternativeFileProvider.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/CompressedStaticFileExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/CompressedStaticFileExtensions.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/CompressedStaticFileMiddleware.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/CompressedStaticFileMiddleware.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/CompressedStaticFileOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/CompressedStaticFileOptions.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/CompressedStaticFiles.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/CompressedStaticFiles.csproj -------------------------------------------------------------------------------- /CompressedStaticFiles/IAlternativeFileProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/IAlternativeFileProvider.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/IFileAlternative.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/IFileAlternative.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/LoggerExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/LoggerExtensions.cs -------------------------------------------------------------------------------- /CompressedStaticFiles/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/CompressedStaticFiles/icon.png -------------------------------------------------------------------------------- /Example/Example.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/Example.csproj -------------------------------------------------------------------------------- /Example/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/Program.cs -------------------------------------------------------------------------------- /Example/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/Properties/launchSettings.json -------------------------------------------------------------------------------- /Example/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/Startup.cs -------------------------------------------------------------------------------- /Example/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/appsettings.Development.json -------------------------------------------------------------------------------- /Example/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/appsettings.json -------------------------------------------------------------------------------- /Example/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/gulpfile.js -------------------------------------------------------------------------------- /Example/images/IMG_6067.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/images/IMG_6067.jpg -------------------------------------------------------------------------------- /Example/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/images/favicon.ico -------------------------------------------------------------------------------- /Example/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/images/favicon.png -------------------------------------------------------------------------------- /Example/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/images/icon.png -------------------------------------------------------------------------------- /Example/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/package-lock.json -------------------------------------------------------------------------------- /Example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/package.json -------------------------------------------------------------------------------- /Example/wwwroot/IMG_6067.avif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/IMG_6067.avif -------------------------------------------------------------------------------- /Example/wwwroot/IMG_6067.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/IMG_6067.jpg -------------------------------------------------------------------------------- /Example/wwwroot/IMG_6067.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/IMG_6067.webp -------------------------------------------------------------------------------- /Example/wwwroot/cover.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/cover.css -------------------------------------------------------------------------------- /Example/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/favicon.ico -------------------------------------------------------------------------------- /Example/wwwroot/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/favicon.png -------------------------------------------------------------------------------- /Example/wwwroot/favicon.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/favicon.webp -------------------------------------------------------------------------------- /Example/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/icon.png -------------------------------------------------------------------------------- /Example/wwwroot/icon.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/icon.webp -------------------------------------------------------------------------------- /Example/wwwroot/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/index.html -------------------------------------------------------------------------------- /Example/wwwroot/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/Example/wwwroot/style.css -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/README.md -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | {"projects":["src","test"]} -------------------------------------------------------------------------------- /icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnderssonPeter/CompressedStaticFiles/HEAD/icon.svg --------------------------------------------------------------------------------