Reworked compression and static file handling