# Cache-Control response header not change after use cacheSeconds property in the @builder.io/sdk

**URL:** <https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161>\
**Category:** Bugs\
**Created:** [March 13, 2024, 1:13pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161 "2024-03-13T13:13:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wojciech.kusmierczyk](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@wojciech.kusmierczyk](https://forum.builder.io/u/wojciech.kusmierczyk)\
**Post date:** [March 13, 2024, 1:13pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/1 "2024-03-13T13:13:46Z")

</div>

I have the problem with Cache-Control response header.

I use the **@builder.io/sdk@2.2.2** and i try to fetch builder content by the **builder.getAll** method.

I set **cacheSeconds** property to 10, but when the response is incoming the Cache-Control was setting with following property:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/9/976fba59b31fe4e5a5dc91d2f87b9a936bea9673.png)

But when I set the cacheSeconds property by value greater than 60 the **Cache-Control** header was changing and max-age ans s-maxage properties have the provide cacheSeconds property value.

Can you have any idea how to use cacheSeconds property with value less than **60**?

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [March 13, 2024, 5:19pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/2 "2024-03-13T17:19:00Z")

</div>

Hello @wojciech.kusmierczyk,

Thank you for flagging this issue. We’ve escalated it to our team for investigation, and we’ll keep you updated on any progress we make.

Thanks,

---

<div class="post-metadata">

**Author:** ![wojciech.kusmierczyk](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@wojciech.kusmierczyk](https://forum.builder.io/u/wojciech.kusmierczyk)\
**Post date:** [March 19, 2024, 6:40am UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/3 "2024-03-19T06:40:31Z")

</div>

@manish-sharma what is the status of this issue?

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [March 20, 2024, 1:15pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/4 "2024-03-20T13:15:14Z")

</div>

Hello @wojciech.kusmierczyk,

We are still investigating this issue. Rest assured, I will keep you updated with any progress made.

Thank you for your cooperation.

Best regards,

---

<div class="post-metadata">

**Author:** ![tlee-pb](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@tlee-pb](https://forum.builder.io/u/tlee-pb)\
**Post date:** [July 29, 2024, 2:50pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/5 "2024-07-29T14:50:06Z")

</div>

Hello @manish-sharma,

Is there any update on this? I might have the similar issue on my end as well. Thanks.

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [July 29, 2024, 3:06pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/6 "2024-07-29T15:06:55Z")

</div>

Hello @tlee-pb,

I understand the reported issue is causing inconvenience. Rest assured, we have scheduled it for investigation and a possible fix in the 3rd week of August.

Until then if it works, we recommend using cachebust option

```auto
const content = await builder
    // Get the page content from Builder with the specified options
    .getall(builderModelName, {
      enrich: true,
      cachebust: true,
    })

```

Thank you for your patience.

---

<div class="post-metadata">

**Author:** ![josh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/josh/32/597_2.png) [@josh](https://forum.builder.io/u/josh)\
**Post date:** [October 1, 2025, 5:59pm UTC](https://forum.builder.io/t/cache-control-response-header-not-change-after-use-cacheseconds-property-in-the-builder-io-sdk/5161/7 "2025-10-01T17:59:59Z")

</div>

I’m still seeming this behaviour, any news on fix?
