# Page caching for urls with dots

**URL:** <https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814>\
**Category:** Rails\
**Created:** [June 8, 2006, 11:29am UTC](https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814 "2006-06-08T11:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriele\_renzi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Post date:** [June 8, 2006, 11:29am UTC](https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814/1 "2006-06-08T11:29:31Z")

</div>

hi everyone,

I have a pesky problem with page caching, sorry if it sounds dummy.  
Whenever I’m caching an url like  
/controller/argument.with.dots  
instead of getting a saved page like  
/public/controller/arguments.with.dots.html  
I get  
/public/controller/arguments.with.dots  
which makes the webserver confused as to how to send it (it gets a  
Content-Type of text/plain instead of text/html).

Is this a bug or an expected behaviour?  
Is there a way I could workaround it at the rails level, instead of  
messing with the webserver?

–

blog en: [http://www.riffraff.info](http://www.riffraff.info)  
blog it: [http://riffraff.blogsome.com](http://riffraff.blogsome.com)  
jabber : rff.rff at gmail dot com

---

<div class="post-metadata">

**Author:** ![gabriele\_renzi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Post date:** [June 8, 2006, 1:55pm UTC](https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814/2 "2006-06-08T13:55:49Z")

</div>

On Thursday 08 Jun 2006 10:26, gabriele renzi wrote:

> messing with the webserver?  
> I’ve also had this problem in the past, though the only way I managed to  
> fix  
> it was on Apache, in a .htaccess file in the cache directory concerned,  
> containing:

ForceType text/html

Which worked, but feels a bit kludgy. I think it’s possibly a rails  
bug,  
though haven’t looked into it much.

Cheers,

~Dave

–

Dave S.  
Rent-A-Monkey Website Development

> **[Tree Removal Service For Home & Businesses in Salt Lake City, UT](https://www.rentamonkey.com/)**
>
> Rent A Monkey Tree Service provides the safest, highest-quality tree removal for Salt Lake City, UT homes and businesses. Request a service today!

PGP Key: [http://www.rentamonkey.com/pgpkey.asc](http://www.rentamonkey.com/pgpkey.asc)

---

<div class="post-metadata">

**Author:** ![gabriele\_renzi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e19b73/32.png) [@gabriele\_renzi](https://www.ruby-forum.com/u/gabriele_renzi)\
**Post date:** [June 8, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/page-caching-for-urls-with-dots/62814/3 "2006-06-08T14:15:27Z")

</div>

Dave S. ha scritto:

> I’ve also had this problem in the past, though the only way I managed to fix  
> it was on Apache, in a .htaccess file in the cache directory concerned,  
> containing:
> 
> ForceType text/html

that was what I was thinking thanks for confirming

> Which worked, but feels a bit kludgy. I think it’s possibly a rails bug,  
> though haven’t looked into it much.

definitely need investigation, thank you.

–

blog en: [http://www.riffraff.info](http://www.riffraff.info)  
blog it: [http://riffraff.blogsome.com](http://riffraff.blogsome.com)  
jabber : rff.rff at gmail dot com
