# Cache rules for js files

**URL:** <https://forum.mautic.org/t/cache-rules-for-js-files/18923>\
**Category:** General Discussion\
**Tags:** community, development\
**Created:** [April 8, 2021, 4:33pm UTC](https://forum.mautic.org/t/cache-rules-for-js-files/18923 "2021-04-08T16:33:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jldo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jldo/32/948_2.png) [@jldo](https://forum.mautic.org/u/jldo)\
**Post date:** [April 8, 2021, 4:33pm UTC](https://forum.mautic.org/t/cache-rules-for-js-files/18923/1 "2021-04-08T16:33:16Z")

</div>

hi all, all js files coming from Mautic doesn’t have any browser cache rule (No Cache), is there any trap setting a short one like 1day so the same form in a footer won’t be loaded on each page a customer browse on a single session.?  
Thks

---

<div class="post-metadata">

**Author:** ![plato39](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/plato39/32/2343_2.png) [@plato39](https://forum.mautic.org/u/plato39)\
**Post date:** [May 21, 2022, 1:19pm UTC](https://forum.mautic.org/t/cache-rules-for-js-files/18923/2 "2022-05-21T13:19:49Z")

</div>

Hi

You might want to try this: [Enable browser caching of mtc.js as described in https://github.com/mautic/mautic/issues/3656 · GitHub](https://gist.github.com/nextgens/ca501d3c1b149a62c09b0b409e0651a7)

Good luck!
