according to the docs Confluence is using a cache for the results of static content macros. I’m pretty confident that I’m sending the correct headers back but results are not as expected. I expected that the initial load time is higher followed by significantly shorter load times until the cache has expired. However this is not always the case. Sometimes the cache works right away sometimes it takes many reloads before caching seems to start.
Observed example for a page with 50 static content macros: 14s, 14s, 13s, 15s, 13s, 4s, 4s, 4s,…
Expected: 14s, 4s, 4s, 4s…
This does not only happen with my plugin but also with other plugins using static content macros (LatexMath, Multi Excerpt etc.).
What is going on in the background and is there a possible to influence this?