[typo] Blog defaulting to rss feed

Edward Middleton emiddleton at bebear.net
Fri Sep 4 21:25:55 EDT 2009


Matijs van Zuijlen wrote:
> Michael Dever wrote:
>>> So my guess is that this happens whenever a URL like
>>>
>>>    http://your.blog.org/?format=rss
>>>
>>> (which caches like index.html!) is accessed before
>>>
>>>    http://your.blog.org/
>>>
>>> gets a chance to cache its version. I don't really see a solution for this: Is
>>> there a way to make Rails ignore parameters supplied this way?
> 
> ... I have come up with a solution for this quandary! It is possible to add a
> condition to Rails' page caching. I have just implemented the condition that the
> query string must be empty. This means that *after a cache sweep*,
> 
>    http://your.blog.org/?format=rss

Shouldn't this be http://your.blog.org/index.rss

Edward


More information about the Typo-list mailing list