Will Cloudfare cache images added to the DOM by javascript by default, or does that

What is the name of the domain?

example.com

What is the error number?

none

What is the error message?

none

What is the issue you’re encountering

Will Cloudflare cache images added to the DOM by javascript by default, or does that require a rule or a premium plan?

What steps have you taken to resolve the issue?

I’m just getting started, and I have some questions before I enter my DNS records into cloudflare.

Will Cloudflare cache images added to the DOM by javascript by default, or does that require a rule or a premium plan?

I suppose it depends on how Javascript requests the image from Cloudflare. Wouldn’t that still be an HTTP GET request?

Thanks.

For example, if an image element is added to the DOM after page load with a src attribute, like this:
Girl in a jacket

Or the background-image property of an element is populated by javascript after page load with a url, like this:

p { background-image: url('img_girl.jpg'); }

Would caching these images require a rule?

Or a premium plan?

Hi, I’m a newbie and I’m trying to get familiar with cache rules recently.
I’d love to try my best to answer your questions.
I think the answer is no, cache rules need to be set, and you don’t need a paid plan to set cache rules.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.