🕸📝Fergus Duniho wrote on Tue, Jul 7, 2020 09:35 PM UTC:
I was puzzled by that Adam reports a different behavior between the images in the piece section, which are in the retrieved HTML part, and those in the Interactive Diagram, which are client-side JavaScript generated.
He said the images in the Piece section are up-to-date but those in the interactive diagram are not. This would be consistent with what I said.
Because neither of those has a nocache=true suffix.
He also said he waited a few days. In the HTML generated by PHP, the nocache=true query string is used only for images younger than three days. I just looked at the page he mentioned using Chrome, and I saw that your JavaScript was adding this query string to the image URLs. Maybe you just added that if you were just telling me that your interactive diagrams was not including the query string. Anyway, what is going on with Cloudflare is that the site-wide caching level is set to No Query String, which is described as "No Query String: Only delivers files from cache when there is no query string." The two exceptions I made to this affect scripts in general and one script in particular but do not affect regular graphic images.
He said the images in the Piece section are up-to-date but those in the interactive diagram are not. This would be consistent with what I said.
He also said he waited a few days. In the HTML generated by PHP, the nocache=true query string is used only for images younger than three days. I just looked at the page he mentioned using Chrome, and I saw that your JavaScript was adding this query string to the image URLs. Maybe you just added that if you were just telling me that your interactive diagrams was not including the query string. Anyway, what is going on with Cloudflare is that the site-wide caching level is set to No Query String, which is described as "No Query String: Only delivers files from cache when there is no query string." The two exceptions I made to this affect scripts in general and one script in particular but do not affect regular graphic images.