Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2022-09-05 18:21:26 +0300
committerGitHub <noreply@github.com>2022-09-05 18:21:26 +0300
commit8de2c4213fe2dc0170791666fe8fb1ca4c7845ee (patch)
treede9b3a24ba632e7282ba475a7ab1e45685cfde83 /lib
parentf496e471e06d546179e3f12af1e6cc9319db9bb3 (diff)
parentc55ae98a3fd504e0e6bf3f161e428a896bb0638f (diff)
Merge pull request #33889 from nextcloud/debt/noid/docblock-cache-for
Update docblock for cacheFor
Diffstat (limited to 'lib')
-rw-r--r--lib/public/AppFramework/Http/Response.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php
index 6febef838cf..9dd84a16649 100644
--- a/lib/public/AppFramework/Http/Response.php
+++ b/lib/public/AppFramework/Http/Response.php
@@ -105,8 +105,10 @@ class Response {
/**
* Caches the response
- * @param int $cacheSeconds the amount of seconds that should be cached
- * if 0 then caching will be disabled
+ *
+ * @param int $cacheSeconds amount of seconds the response is fresh, 0 to disable cache.
+ * @param bool $public whether the page should be cached by public proxy. Usually should be false, unless this is a static resources.
+ * @param bool $immutable whether browser should treat the resource as immutable and not ask the server for each page load if the resource changed.
* @return $this
* @since 6.0.0 - return value was added in 7.0.0
*/