- add missing support for raw post data (HttpRequest)
[m6w6/ext-http] / docs / examples / Cached_Responses.php
diff --git a/docs/examples/Cached_Responses.php b/docs/examples/Cached_Responses.php
new file mode 100644 (file)
index 0000000..8ac2bcf
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+HttpResponse::setCacheControl('public');
+HttpResponse::setCache(true);
+HttpResponse::capture();
+
+print "This will be cached until content changes!\n";
+print "Note that this approach will only save the clients download time.\n";
+?>