Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

[Fwd: Re: max-age in the recent versions]

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


skinkie at xs4all

Apr 4, 2008, 6:52 AM

Post #1 of 4 (205 views)
Permalink
[Fwd: Re: max-age in the recent versions]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

> Can anyone clarify this?

I already found out that the mime lookup for an extension doesn't seem
to work.


handler_file.c:404
ret = cherokee_mime_get_by_suffix (srv->mime,
ext+1, &fhdl->mime);

This return a '3' not found.


Questions:
1) The config file speaks about 'extensions'. I guess multiple are
allowed, I have also tried single item with and without dot.

2) It seems to be a 'lookup' issue, is it debugable?


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH9jKDYH1+F2Rqwn0RCqWfAJ9NDD4pfaw8iy/f5uGj64mnIia+JQCdERYr
8FlLmS5IcatChl+h7oZVAcQ=
=4BsQ
-----END PGP SIGNATURE-----
Attachments: cherokee.out.gz (2.32 KB)


alvaro at sun

Apr 4, 2008, 7:33 AM

Post #2 of 4 (198 views)
Permalink
Re: [Fwd: Re: max-age in the recent versions] [In reply to]

On 4 Apr 2008, at 15:52, Stefan de Konink wrote:

>> Can anyone clarify this?
>
> I already found out that the mime lookup for an extension doesn't seem
> to work.
>
> handler_file.c:404
> ret = cherokee_mime_get_by_suffix (srv->mime,
> ext+1, &fhdl->mime);
>
> This return a '3' not found.

It could be a bug. I will check it out as soon as I finish the rule
list improvement I'm currently working on.

> Questions:
> 1) The config file speaks about 'extensions'. I guess multiple are
> allowed, I have also tried single item with and without dot.

Yes. You can define multiple extensions in a single rule. Eg:
"jpg,jpeg,png".

> 2) It seems to be a 'lookup' issue, is it debugable?

It cherokee is compiled with --enable-trace, you can use:

CHEROKEE_TRACE="mime" /usr/sbin/cherokee

that should print some information about which mime types are added
and their max-age values.

--
Greetings, alo.

_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


adefacc at tin

Apr 6, 2008, 11:53 PM

Post #3 of 4 (178 views)
Permalink
Re: [Fwd: Re: max-age in the recent versions] [In reply to]

Stefan de Konink wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> > Can anyone clarify this?
>
> I already found out that the mime lookup for an extension doesn't seem
> to work.
>
> handler_file.c:404
> ret = cherokee_mime_get_by_suffix (srv->mime,
> ext+1, &fhdl->mime);
>
> This return a '3' not found.
>
> Questions:
> 1) The config file speaks about 'extensions'. I guess multiple are
> allowed, I have also tried single item with and without dot.

See below answer.

> 2) It seems to be a 'lookup' issue, is it debugable?

Yes, it is.

General answer
--------------
I guess you have tried to use a trunk version,
right now max-age might not work in trunk,
but in 0.6.x versions it should, so I suggest you to use
a stable version at least till trunk won't stabilize
again (within 5-7 weeks).

As you know,
in 0.6.x mime types are stored in an external file
(mime.types) that you can edit in order to add max-age time
by using the format documented in file headers
(see comments).

In trunk (future 0.7) mime types are listed inside
configuration file (cherokee.conf); we have to decide
what kind of max-age support we will add to 0.7
(i.e. max-age per mime type extension as in 0.6,
per file extension, per virtual server,
per directories, etc.).

Any suggestion is welcome and even if
it is believed that 0.7 development won't last too long
(I guess less than a couple of months),
remaining good ideas may be implemented in 0.8 or 0.9.

Greetings.

--
Nick Name: A.D.F.
E-Mail: <adefacc () tin ! it>
E-Mail-Format: Plain Text only (please); view using font Courier New
--
_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


skinkie at xs4all

Apr 7, 2008, 3:37 AM

Post #4 of 4 (180 views)
Permalink
Re: [Fwd: Re: max-age in the recent versions] [In reply to]

A.D.F. schreef:
> General answer
> --------------
> I guess you have tried to use a trunk version,
> right now max-age might not work in trunk,
> but in 0.6.x versions it should, so I suggest you to use
> a stable version at least till trunk won't stabilize
> again (within 5-7 weeks).

Oki, will do :)

> As you know,
> in 0.6.x mime types are stored in an external file
> (mime.types) that you can edit in order to add max-age time
> by using the format documented in file headers
> (see comments).

Yes, it worked like a charm, but I was very attracted to the
webinterface with mimetypes and ages ;)



Stefan
_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.