Re: [naviserver-devel] gzipping static content - how to do?

2017-01-16 Thread John from Decent Espresso
Thanks Gustaf (Hahaha) that is the cause of the mime-type problem. I’ve upgraded to ns 4.99.15 and the MIME type bug is now gone. However, I’m still not having gzipped files automatically made.  I’ve "chmod 777 ." and also "chmod 666 *.css" to try to find the root. — It appears that ns_gzipfil

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-16 Thread David Osborne
On 16 January 2017 at 09:17, John from Decent Espresso < j...@decentespresso.com> wrote: > Thanks Gustaf (Hahaha) that is the cause of the mime-type problem. I’ve > upgraded to ns 4.99.15 and the MIME type bug is now gone. > > However, I’m still not having gzipped files automatically made. I’ve >

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-16 Thread John from Decent Espresso
Not sure if you picked up that the gzip files aren't automatically created for you within Naviserver. But they are automatically refreshed. So you need to manually create an initial gzipped version of all the files you want to deliver gzip encoded. Once the initial gzipped version exists, navis

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-16 Thread Gustaf Neumann
Am 16.01.17 um 10:17 schrieb John from Decent Espresso: Thanks Gustaf (Hahaha) that is the cause of the mime-type problem. I’ve upgraded to ns 4.99.15 and the MIME type bug is now gone. However, I’m still not having gzipped files automatically made. I’ve "chmod 777 ." and also "chmod 666 *.cs

Re: [naviserver-devel] ADP without file name extensions

2017-01-16 Thread Gustaf Neumann
Am 16.01.17 um 10:17 schrieb John from Decent Espresso: A different topic. I use the code patch below to get rid of the need for ".adp" on the end of my URLs. In other words, naviserver transparently rewrites https://decentespresso.com/cart as https://decentespresso.com/cart.adp and doesn’t

Re: [naviserver-devel] ADP without file name extensions

2017-01-16 Thread John from Decent Espresso
You have asked this question before: Sorry Gustaf, I thought I had asked aolserver before, not naviserver. At any rate, still no good solution to this, other than adding a tcl filter that captures and potentially rewrites all requests. However, one does not want to run the filter on every reques

Re: [naviserver-devel] gzipping static content - how to do?

2017-01-16 Thread John from Decent Espresso
As David mentioned, one has to make a initial pick which files should be delivered via static gzip by gzipping these. As you mentioned, the the rules, what exactly should be delivered via gzip and what not might be complex, so, we do not want to add overhead at the first place. Ok, that actually