Top-Q / difido-reports

This project aims to provide a generic implementation for HTML test reports.
http://top-q.github.io/difido-reports
Apache License 2.0
47 stars 31 forks source link

Adding an option to serve archived (gzipped) resources #194

Open alikg opened 6 years ago

alikg commented 6 years ago

if we set enable.archived.resources=true in the properties file we will be able to store ONLY the .gz version of the resource and return it to requesting client if the original version is not found.

Consider a request for a resource test.js The flow will be the following if test.js exists if test.js.gz exists and supported by browser return test.js.gz else retrurn test.js else if test.js.gz exists and return if so (but still report the original resource's name)

else return null (as we would anyway).

alikg commented 6 years ago

Added a ZipOnTheFly mechanism which will compress all non-excluded extensions before uploading them to the remote server; There are two new settings in remoteDifido.properties

the value is in bytes!

compress.files.above=5000

the following the extensions that are NOT compressed by default

dont.compress.extensions=7z;zip;rar;gzip;gz;jpg;jpeg;png;gif;avi;xvid;mp4;mp3;tif;tiff;pdf;wmf;svg;exe;jar