Article page cache ignores query parameters #71
-
|
The article page cache currently caches content at the path level, ignoring query parameters. As a result, server logic does not run for subsequent requests with different query values, and the same cached page is returned for any variations in the URL. This affects both layouts and output types. On the first load, the server processes the request and generates the content. After that:
At the layout level, data can only be:
Workaround: Adding Steps to reproduce:
Expected behavior:
Also, is it safe to use the Any guidance or tips on resolving this would be appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Ho @valerii-tbb this is indeed very intentional that we don't allow query string parameters other than recognized Arc XP query string parameters. The reason is this type of approach opens your rendering stack (as well as downstream content platform API) vulnerable to any attacker enumerating and overwhelming your capacity, can result 429 at render level. Arc XP CDN will cover these errors and will still serve stale traffic to your readers (but then your new content will show on your article pages at longer periods of times). This behavior is very dangerous and it is intentionally not allowed at Arc XP. Output type is allowed but it bypasses CDN cache but on engine render, invalid output type falls back to default. This is actually still dangerous, and let me check with the team how PageBuilder Cache behaves (it maybe still using same "default output type" cached content, so it maybe partially safe, but let me check). What you can do is to configure these filters as resolver configurations, only allow what's expected in these filter keywords, that will keep the variations of filters to known set of values and cache split. It still increases the capacity to content platform (or your 3rd party content sources), and you can keep this behavior more control and in safe bounds. This changes your URL schema, and filters to be part of path definition, like:
|
Beta Was this translation helpful? Give feedback.
Ho @valerii-tbb this is indeed very intentional that we don't allow query string parameters other than recognized Arc XP query string parameters.
The reason is this type of approach opens your rendering stack (as well as downstream content platform API) vulnerable to any attacker enumerating and overwhelming your capacity, can result 429 at render level. Arc XP CDN will cover these errors and will still serve stale traffic to your readers (but then your new content will show on your article pages at longer periods of times). This behavior is very dangerous and it is intentionally not allowed at Arc XP.
Output type is allowed but it bypasses CDN cache but on engine render, invalid output t…