# No caching of pages when called through AJAX?

**URL:** <https://www.ruby-forum.com/t/no-caching-of-pages-when-called-through-ajax/92562>\
**Category:** Rails\
**Created:** [April 20, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/no-caching-of-pages-when-called-through-ajax/92562 "2007-04-20T20:10:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Winkler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@Sebastian\_Winkler](https://www.ruby-forum.com/u/Sebastian_Winkler)\
**Post date:** [April 20, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/no-caching-of-pages-when-called-through-ajax/92562/1 "2007-04-20T20:10:18Z")

</div>

I would like to cache the result of an action I call through AJAX, but  
caching only seems to work when I access the action directly.  
Is there a way to force caching of pages even when they are called  
through AJAX?

Thanx,  
Sebastian
