Forum

How do you implement X-Hiawatha-Cache?

Ron Jones
8 July 2017, 22:36
I have tried using it in hiawatha.conf, but haven't been able to figure it out. Other forum posts I've read seem to suggest it goes in the <head> of your php documents. I'm a little unclear on that one.

Additionally:
1. It looks from the manual page that x-hiawatha-cache is only for CGI, not FastCGI.

2. I already have "CacheSize = 64" in my Server settings. IF x-hiawatha-cache is also for FastCGI, does it work with CacheSize? or must one choose between the two?
Hugo Leisink
9 July 2017, 10:50
Use the header() function call to set the header.

1: It also works for FastCGI.

2: That setting sets the entire cache size, which also applies to cache requests via FastCGI.
Ron Jones
9 July 2017, 13:09
So I drop it in the header of my PHP documents?
Hugo Leisink
9 July 2017, 19:43
Header of your PHP document? Since when does a PHP document have a header?
This topic has been closed.