j...@bitminer.ca wrote in <07cf90c2d8adab83ffd36ef69ebcd...@bitminer.ca>: |On 2022-02-27 19:28, Solène wrote: |> If I remember well, lighttpd will compress server side upon request if |> a compressed version of that file doesn't exist. |> |> This is entirely different than how httpd behave, because it doesn't |> compress files at all.
The separate path to avoid ambiguities would still address one concern de Raadt had a couple of months back if i recall correctly. And for example doing a dirname and adding ."CVS" before the basename.gz would only slightly complicate aka enlargen the patch. My main use case for www.openbsd.org (having a quick look at manuals) would not be covered by that though, and ML archives are not hosted either. HTML compresses a lot, i find it desirable. |I would describe the automatic selection of available .gz files as |a hand-crafted compression cache. | |This is not user-friendly to either system admins or webmasters |(assuming they are different people). | |My proposal was to automate the cache-invalidate logic (so-to-speak), |until/unless the file owner (sysadmin or webmaster) updates the gz |file. This reduces a possible error path. | |There are a few use-cases for the gz feature: | |1) large files built exactly once; the gz file is therefore built |once, and hand-crafted compression is selected in config and by |creating the gz file. The file owner(s) know what they are doing. | |2) large files updated a few times; perhaps the owner(s) will |remember to update gz files. This is where the proposal fits in. |Even though they know what they are doing, helping invalidate the |cache is a good thing until the cache is updated. | |3) a set of large files which need consistent treatment: outside |the scope of such a program at httpd or it's users. | |Please consider the above as reasoning for somewhat more logic |than was first suggested. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)