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_param     cache                   true

   # Size of fast path cache. Optional, default is ~10M.
   ns_param     cachemaxsize            [expr 1024*10000]

   # Largest file size allowed in cache. Optional, default is 8K
   ns_param     cachemaxentry           8192

   # Use mmap() for cache. Optional, default is false.
   ns_param     mmap                    true

   # Return gzip-ed variant, if available and allowed by client (default false)
   ns_param     gzip_static             true

   # Refresh stale .gz files on the fly using ::ns_gzipfile (default false)
   ns_param     gzip_refresh            true

   # Return the specified command for re-compressing when gzip file is outdated
   ns_param     gzip_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

Reply via email to