# Page caching - rewrite rules/ trailing slash question

**URL:** <https://www.ruby-forum.com/t/page-caching-rewrite-rules-trailing-slash-question/52362>\
**Category:** Rails\
**Created:** [January 13, 2006, 5:46am UTC](https://www.ruby-forum.com/t/page-caching-rewrite-rules-trailing-slash-question/52362 "2006-01-13T05:46:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@ben](https://www.ruby-forum.com/u/ben)\
**Post date:** [January 13, 2006, 5:46am UTC](https://www.ruby-forum.com/t/page-caching-rewrite-rules-trailing-slash-question/52362/1 "2006-01-13T05:46:30Z")

</div>

Hi,  
I was wondering if anyone has run into this issue in which trailing  
slashes  
are triggering the controller/action instead of serving the cached  
page in the public/ directory.

For example  
[www.myhost.com/controller/action](http://www.myhost.com/controller/action) - will serve up  
public/controller/action.html  
but [www.myhost.com/controller/action/](http://www.myhost.com/controller/action/) - will run the action again.

I’m quite newbie with the entire Apache mod\_rewrites.

Thanks,

Ben
