Open alikg opened 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
compress.files.above=5000
dont.compress.extensions=7z;zip;rar;gzip;gz;jpg;jpeg;png;gif;avi;xvid;mp4;mp3;tif;tiff;pdf;wmf;svg;exe;jar
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).