AnderssonPeter / CompressedStaticFiles

asp.net core middleware to 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.
Apache License 2.0
88 stars 18 forks source link

Add support for higher res images on devices that have a pixel density above 1 #19

Open AnderssonPeter opened 3 years ago

AnderssonPeter commented 3 years ago

This can be done using https://caniuse.com/client-hints-dpr-width-viewport but sadly its not yet supported by apple devices.

AnderssonPeter commented 3 years ago

Use @2x to denote the file has 2 pixels per pixel