Hi John,

One has to gzip the files for naviserver to serve.

 From the url you referred to:
"Once you have initially seeded the filesystem with .gz versions of 
static files.."

cd to the dir with files static files:
gzip -k *

iirc one has to restart naviserver for the compressed files to be 
registered for use.

cheers,
Ben

On 01/13/2017 09:10 PM, John from Decent Espresso wrote:
> I’m struggling a bit to get naviserver to gzip static content (.js
> and.css). ADP gzipping is working.
>
> According to the docs, it’d seem that all I need to do is enable all the
> fastpath config stuff below, and it’d work, but that’s not doing the
> trick.  Perhaps there is additional fast path configuring to do to
> enable certain directories?
>
> According to this code by Daniel Clark, a fast path filter is needed to
> make this work, but it seems that (a) his code may not be current and
> (b) his filter doesn’t work because he doesn’t supply the other
> dependent functions his code calls.
> https://www.qcode.co.uk/post/121
>
> I’ve looked at the fastpath.c/fastpath.tcl as the docs indicated, but
> was not illuminated.
>
> I probably just don’t know where to look, but after about 2h of banging
> on this, I thought I’d ask for help….
>
> -john
>
>
>
> ns_section"ns/fastpath"
>
>    # Enable cache for normal URLs. Optional, default is false.
>    ns_paramcachetrue
>
>    # Size of fast path cache. Optional, default is ~10M.
>    ns_paramcachemaxsize[expr 1024*10000]
>
>    # Largest file size allowed in cache. Optional, default is 8K
>    ns_paramcachemaxentry8192
>
>    # Use mmap() for cache. Optional, default is false.
>    ns_parammmaptrue
>
>    # Return gzip-ed variant, if available and allowed by client (default
> false)
>    ns_paramgzip_statictrue
>
>    # Refresh stale .gz files on the fly using ::ns_gzipfile (default false)
>    ns_paramgzip_refreshtrue
>
>    # Return the specified command for re-compressing when gzip file is
> outdated
>    ns_paramgzip_cmd"/usr/bin/gzip -9"
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
>
>
>
> _______________________________________________
> naviserver-devel mailing list
> naviserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to