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