I am all of a sudden getting the following error when attempting to add
edit an article:
The precondition on the request for the URL /admin/content/edit/81
This is running revision 875 from the trunk. The only change I made
(last night) was to change the way articles are being cached. This was
effort to get a rotating banner image working.
This does not happen locally when I run the site via Webrick but is
happening in production mode via lighttpd on Textdrive.
I wouldn’t think the caching change I made would cause this, as the
appears to be in admin/content, not articles.
My articles controller looks like this now:
class ArticlesController < ApplicationController
cached_pages = [:index, :read, :permalink, :category, :find_by_date,
:archives, :view_page, :tag]
session :off, :only => cached_pages
response.lifetime = 3600 # 1 hour
Why is this happening and what can I do to stop it?