fritz2
December 10, 2024, 1:27am
1
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?
sdayman
December 10, 2024, 4:14am
2
I suppose it depends on how Javascript requests the image from Cloudflare. Wouldn’t that still be an HTTP GET request?
fritz2
December 10, 2024, 12:26pm
3
Thanks.
For example, if an image element is added to the DOM after page load with a src attribute, like this:
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.
system
Closed
January 3, 2025, 4:44pm
5
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.