# Browser caching of js and css

**URL:** <https://www.ruby-forum.com/t/browser-caching-of-js-and-css/87573>\
**Category:** Rails\
**Created:** [March 4, 2007, 2:02am UTC](https://www.ruby-forum.com/t/browser-caching-of-js-and-css/87573 "2007-03-04T02:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![giaco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a3d4f5/32.png) [@giaco](https://www.ruby-forum.com/u/giaco)\
**Post date:** [March 4, 2007, 2:02am UTC](https://www.ruby-forum.com/t/browser-caching-of-js-and-css/87573/1 "2007-03-04T02:02:08Z")

</div>

I’m running https connection to apache 2.2 proxying to mongrel running  
rails 1.2. The browser never caches my js and css files. Is there some  
way to tell it to cache them.

Jack

---

<div class="post-metadata">

**Author:** ![giaco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a3d4f5/32.png) [@giaco](https://www.ruby-forum.com/u/giaco)\
**Post date:** [March 5, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/browser-caching-of-js-and-css/87573/2 "2007-03-05T14:55:38Z")

</div>

We talking in development or production? Development Rails adds a random  
number string to the script and link tags to make sure there is no  
caching.  
If this is production, make sure your browser cache isn’t actually  
turned  
off.

Jason
