This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-50d77f2c-b67a-4970-b266-a53701c5b410 XWIKI-23250 Open

Ignore cache-control requests in some cases

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ced52086-6ab3-4a51-a243-93880b54a11e Thomas Mortagne created this issue on 27/May/25 08:20
 
Summary: Ignore cache-control requests in some cases
Issue Type: cid:jira-generated-image-avatar-50d77f2c-b67a-4970-b266-a53701c5b410 Improvement
Affects Versions: 16.10.8
Assignee: Unassigned
Components: Containers
Created: 27/May/25 08:20
Priority: cid:jira-generated-image-static-major-ec4d0acb-8236-4448-9c46-18c74a3ab0af Major
Reporter: Thomas Mortagne
Description:

Some caches with preparation are skipped when the HTTP request sends a Cache-Control: no-cache (the idea being that there might still be some variation in the preparation in some cases, and we wanted to give a way to force it to not be stuck):

  • templates cache
  • document content XDOM
  • various wiki extension content (wiki macros, panels, ui extensions, etc.)
  • ...

Problem is that we notice recently on production a high number of those cases and suspect that some bots are always sending Cache-Control: no-cache with each HTTP request, which makes the cache totally useless.

See https://forum.xwiki.org/t/cache-servletcontext-getresource/16416 for some ideas.

 
 

2 updates

 
cid:jira-generated-image-avatar-ced52086-6ab3-4a51-a243-93880b54a11e Changes by Thomas Mortagne on 27/May/25 08:21
 
Description: Some caches with content preparation are skipped when the HTTP request sends a {{Cache-Control: no-cache}} (the idea being that there might still be some variation in the preparation in some cases, and we wanted to give a way to force it to not be stuck):
* templates cache
* document content XDOM
* various wiki extension content (wiki macros, panels, ui extensions, etc.)
* ...

Problem is that we
notice noticed recently on production a high number of those cases and suspect that some bots are always sending {{Cache-Control: no-cache}} with each HTTP request, which makes the cache totally useless.

See https://forum.xwiki.org/t/cache-servletcontext-getresource/16416 for some ideas.
Labels: performance