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 confi
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
reg
Dear John,
The option "gzip_static" requires, that the files to be delivered are gzip
compressed in the file system. In order to have "gzip_rerfresh" working
(automatically re-compress the file when the version has changed) requires
that the server has write permissions on the .gz file and that "
Hi Gustaf,
When I create a .gz file for the CSS file (by hand, to test) the problem I
encounter is that naviserver changes the MIME type to application/gzip, which
makes chrome and firefox very unhappy:
> skel.min.js:2 Resource interpreted as Stylesheet but transferred with MIME
> type applicat
Dear John,
What version of NaviServer are you using?
There was a related bug in NaviServer 4.99.12, which was fixed in Sept
2016 by commit [2],
included in releases since 4.99.13 (Oct 2016)
all the best
-gustaf
[1]
https://bitbucket.org/naviserver/naviserver/src/23966c68ab0a758f9d3127b5aaa92
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
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
>
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
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
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
Suggestions for an improved wording in the documentation are welcome.
-g
Am 17.01.17 um 04:51 schrieb 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 sh
11 matches
Mail list logo