Forum

Hiawatha new GZip compression

Rene
13 January 2016, 11:42
Hello,

i have questions about the new feature:
* on wich folder hiawatha will store the compressed static files? Is this WorkDirectory ?
* which filetypes will be compressed? Only Text-Files?
* Which method is used to check, if the source file must be compressed again, stat() and ctime ?

Please describe this feature in the man-page.

Thanks!
Rene
13 January 2016, 13:15
i look in to the source:

question 1: sprintf(config->gzipped_directory, "%s/gzipped", config->work_directory);
question 2: file_can_be_compressed(t_session *session); /* only text files */
question 3: if (status.st_mtime > gz_status.st_mtime) {

Ok, the zipped filename is a sha256 hash from the entire original file path.

Best regards

Rene
This topic has been closed.