CompressedStaticFiles alternatives and similar packages
Based on the "Minification" category.
Alternatively, view CompressedStaticFiles alternatives based on common mentions on social networks and blogs.
4.3 6.0 L1 CompressedStaticFiles VS Web Markup MinifierThe Web Markup Minifier (abbreviated WebMarkupMin) - a .NET library that contains a set of markup minifiers. The objective of this project is to improve the performance of web applications by reducing the size of HTML, XHTML and XML code.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CompressedStaticFiles or a related project?
Send compressed static files to the browser without having to compress on demand, also has support for sending more advanced image formats when the browser indicates that i has support for it. · Report Bug · Request Feature
Table of Contents
About The Project
This project allows you to server precompressed files to the browser without having to compress on demand, this is achieved by compressing/encoding your content at build time.
Static nonimage files have to be precompressed using Zopfli and/or Brotli, see the example for how to do it with gulp.
The files must have the exact same filename as the source +
index.html would be
index.html.br for the Brotli version).
Modern browsers support new image formates like webp and avif they can store more pixels per byte.
You can convert your images using the following tools webp and libavif.
The files must have the same filename as the source but with a new file extension (
image.jpg would be
image.webp for the webp version).
AddCompressedStaticFiles() in your
By default CompressedStaticFiles is configured to allow slightly larger files for some image formats as they can store more pixels per byte, this can be disabled by calling
A example can be found in the Example directory.
By using this package the Lighthouse mobile performance went from
98 and the transferred size went from
526 kb to
This solution is based on @neyromant from the following issue https://github.com/aspnet/Home/issues/1584#issuecomment-227455026.
*Note that all licence references and agreements mentioned in the CompressedStaticFiles README section above are relevant to that project's source code only.