projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- 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
+++ b/
docs/examples/Cached_Responses.php
@@ -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";
+?>