You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 97370fd
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
fix(api): honour maxAgeMs=0 on brand retrieve, styleguide and fonts endpoints (#998)
Copy file name to clipboardExpand all lines: pkg/cmd/brand.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ var brandRetrieve = cli.Command{
37
37
},
38
38
&requestflag.Flag[int64]{
39
39
Name: "max-age-ms",
40
-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
40
+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
41
41
BodyPath: "maxAgeMs",
42
42
},
43
43
&requestflag.Flag[bool]{
@@ -128,7 +128,7 @@ var brandRetrieveSimplified = cli.Command{
128
128
},
129
129
&requestflag.Flag[*int64]{
130
130
Name: "max-age-ms",
131
-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
131
+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
Copy file name to clipboardExpand all lines: pkg/cmd/web.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ var webExtractFonts = cli.Command{
180
180
},
181
181
&requestflag.Flag[*int64]{
182
182
Name: "max-age-ms",
183
-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
183
+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
184
184
Default: requestflag.Ptr[int64](7776000000),
185
185
QueryPath: "maxAgeMs",
186
186
},
@@ -221,7 +221,7 @@ var webExtractStyleguide = cli.Command{
221
221
},
222
222
&requestflag.Flag[*int64]{
223
223
Name: "max-age-ms",
224
-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
224
+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
0 commit comments