# Automatic load static resources?

**URL:** <https://community.gatling.io/t/automatic-load-static-resources/7839>\
**Category:** Gatling (Open-Source)\
**Created:** [April 12, 2023, 3:52pm UTC](https://community.gatling.io/t/automatic-load-static-resources/7839 "2023-04-12T15:52:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niko](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@Niko](https://community.gatling.io/u/Niko)\
**Post date:** [April 12, 2023, 3:52pm UTC](https://community.gatling.io/t/automatic-load-static-resources/7839/1 "2023-04-12T15:52:42Z")

</div>

Hi all,  
I found the discussion about dynamic load of static resources in the web: [http module automatically retrieve embedded resources in the dom · Issue #1411 · gatling/gatling · GitHub](https://github.com/gatling/gatling/issues/1411)  
My questions are:  
A) How scans Gatling the HTML page source for static resources and loads it?  
B) If that’s working: How I setup Gatling to simulate browser cache, in the manner, that from the 2nd call of the HTML page on no cached resources are loaded?

Thank you in advance for a detailed response.  
Best, Niko

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [April 12, 2023, 9:59pm UTC](https://community.gatling.io/t/automatic-load-static-resources/7839/2 "2023-04-12T21:59:55Z")

</div>

> How scans Gatling the HTML page source for static resources and loads it?

> **[HTTP Protocol](https://gatling.io/docs/gatling/reference/current/http/protocol/#inferhtmlresources)**
>
> How to configure Gatling HTTP behavior such as baseUrl, common HTTP headers, common HTTP checks and connection pool sharing.

> How I setup Gatling to simulate browser cache, in the manner, that from the 2nd call of the HTML page on no cached resources are loaded?

That’s enabled by default and can be [disabled](https://gatling.io/docs/gatling/reference/current/http/protocol/#disablecaching).

---

<div class="post-metadata">

**Author:** ![Niko](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@Niko](https://community.gatling.io/u/Niko)\
**Post date:** [April 13, 2023, 7:46am UTC](https://community.gatling.io/t/automatic-load-static-resources/7839/3 "2023-04-13T07:46:05Z")

</div>

Great, Thanks.  
Regards, Niko

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [May 13, 2023, 7:46am UTC](https://community.gatling.io/t/automatic-load-static-resources/7839/4 "2023-05-13T07:46:58Z")

</div>

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