File tree 1 file changed +17
-2
lines changed
Filter options
src/Symfony/Component/HttpKernel/Attribute
1 file changed +17
-2
lines changed
Original file line number Diff line number Diff line change @@ -38,27 +38,42 @@ public function __construct(
38
38
public int |string |null $ smaxage = null ,
39
39
40
40
/**
41
- * Whether the response is public or not.
41
+ * If true, the contents will be stored in a public cache and serve to all
42
+ * the next requests
42
43
*/
43
44
public ?bool $ public = null ,
44
45
45
46
/**
46
- * Whether or not the response must be revalidated.
47
+ *
48
+ * If true, the response is not served stale by a cache in any circumstance
49
+ * without first revalidating with the origin.
47
50
*/
48
51
public bool $ mustRevalidate = false ,
49
52
50
53
/**
51
54
* Additional "Vary:"-headers.
55
+ *
56
+ * @var string[]
52
57
*/
53
58
public array $ vary = [],
54
59
55
60
/**
56
61
* An expression to compute the Last-Modified HTTP header.
62
+ *
63
+ * The expression is evaluated by the ExpressionLanguage component, it
64
+ * receives all the request attributes and the resolved controller arguments.
65
+ *
66
+ * The result of the expression must be a DateTimeInterface.
57
67
*/
58
68
public ?string $ lastModified = null ,
59
69
60
70
/**
61
71
* An expression to compute the ETag HTTP header.
72
+ *
73
+ * The expression is evaluated by the ExpressionLanguage component, it
74
+ * receives all the request attributes and the resolved controller arguments.
75
+ *
76
+ * The result must be a string that will hashed.
62
77
*/
63
78
public ?string $ etag = null ,
64
79
You can’t perform that action at this time.
0 commit comments