-
2013-07-03
flam
Since it becomes a often used setup, it would be nice to make DokuWiki work behind a reverse Proxy.
Dokuwiki loads every image, css and js via php from its own cache.
It would be nice to have an option to configure this behavior to a direct link to the cached file, which makes it easier to deliver static files with the proxy.
Linking against a cached static version of CSS und JS files (re-created periodical) can also improve the page load speed on a server without a proxy, because a static file causes less time to send than a file dragged through php.
-
2013-07-06
symcbean
Not an expert on Dokuwiki internals but my installation seems to be serving cacheable content:
css.php
-------
Cache-Control:public, max-age=31536000
Connection:close
Date:Fri, 05 Jul 2013 23:28:55 GMT
ETag:"fbbc2bd86a6ae7c05a97a75f0f9f3410"
Server:Apache/2.2.17 (PCLinuxOS 2011/PREFORK-1pclos2011)
Vary:Accept-Encoding
js.php
------
Cache-Control:public, max-age=31536000
Connection:close
Date:Fri, 05 Jul 2013 23:28:55 GMT
ETag:"7eefa2fbcc8436beac6c2f7f635976b3"
Server:Apache/2.2.17 (PCLinuxOS 2011/PREFORK-1pclos2011)
Vary:Accept-Encoding
fetch.php (images)
---------
Cache-Control:public, proxy-revalidate, no-transform, max-age=86400
Connection:close
Date:Fri, 05 Jul 2013 23:28:58 GMT
ETag:"71dc7007f5f79b4f7310c1a64b00c047"
Expires:Sat, 06 Jul 2013 23:28:58 GMT
Server:Apache/2.2.17 (PCLinuxOS 2011/PREFORK-1pclos2011)
Vary:Accept-Encoding
-
2013-07-12
andi
As Colin said, DokuWiki already sends correct cache headers for cachable files and also handles if-modified-since request. Reverse proxies like Varnish and Squid should work just fine. Keep in mind that ACLs might prevent caching.