First look on compression

Added compression to the cache route, supports defalte en gzip.
encodeDection done with regex, so can be imporoved there.
(BUG) initial load with an compressed file fails for some reason