mod_http_fileserver with cache?

Hi,

I`m serving Jwchat files using the file server.
http://www.ejabberd.im/jwchat-localserver

Is it possible to tell the client browser to cache the files?

Thank you.

Experimental patch

No, it isn't possible in ejabberd 2.0.0.

I submitted a feature request: mod_http_fileserver: include HTTP header in the response to allow caching

I also wrote a small patch for mod_http_fileserver. It includes a new file yaws_utils.erl with code from Yaws.

You can find the patch in ejabberd-web-cache-r1.zip. I also included the patched files in source code and compiled with Erlang/OTP R11B-5.

You can copy the beam files in the same directory where all the other ejabberd beam files are. No need to modify ejabberd.cfg.

If you try this, please tell me if it works correctly or not.

Syndicate content