# How to clear javascript cache on server

**URL:** <https://www.ruby-forum.com/t/how-to-clear-javascript-cache-on-server/160595>\
**Category:** Rails\
**Created:** [February 18, 2009, 1:49am UTC](https://www.ruby-forum.com/t/how-to-clear-javascript-cache-on-server/160595 "2009-02-18T01:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [February 18, 2009, 1:49am UTC](https://www.ruby-forum.com/t/how-to-clear-javascript-cache-on-server/160595/1 "2009-02-18T01:49:10Z")

</div>

I just updated one of my javascript libraries and restarted the thin  
server but I can see the old javascript file is still being cached  
somehow. How can I fix this?

I cleared my local cache as well but it is still pulling up the old  
javascript file.

---

<div class="post-metadata">

**Author:** ![skirkpatrick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Post date:** [February 18, 2009, 3:55am UTC](https://www.ruby-forum.com/t/how-to-clear-javascript-cache-on-server/160595/2 "2009-02-18T03:55:56Z")

</div>

Scott K. wrote:

> I just updated one of my javascript libraries and restarted the thin  
> server but I can see the old javascript file is still being cached  
> somehow. How can I fix this?
> 
> I cleared my local cache as well but it is still pulling up the old  
> javascript file.

got it. i had to remove all.js as this is where my javascript files  
were being cached.
