search for: http_if_modified_since

Displaying 4 results from an estimated 4 matches for "http_if_modified_since".

2006 May 18
2
How to debug the rendering in Rails?
...ind_by_identifier(@params[:id]) @messages = @ml.messages @headers["Content-Type"] = "application/atom+xml" @response.headers[''Last-Modified''] = @messages.last.created_on.httpdateunless @ messages.empty? minTime = Time.rfc2822(@request.env["HTTP_IF_MODIFIED_SINCE"]) rescue nil if minTime and @messages.first.created_on <= minTime render :text => ''Not Modified'', :status => 304 end end This works fine in development, but not in production. The funny thing is that tailing production.log I can see that http stat...
2006 May 18
0
SOLVED: Re: How to debug the rendering in Rails?
...) > @messages = @ml.messages > @headers["Content-Type"] = "application/atom+xml" > @response.headers[''Last-Modified''] = @ > messages.last.created_on.httpdate unless @messages.empty? > > minTime = Time.rfc2822(@request.env["HTTP_IF_MODIFIED_SINCE"]) rescue > nil > if minTime and @ messages.first.created_on <= minTime > render :text => ''Not Modified'', :status => 304 > end > end > > This works fine in development, but not in production. The funny thing > is that tailing...
2007 Mar 08
0
Using send_file and handling browser side cacheing
I''m using send_file to send rather large SWF files that I''d prefer the end browser to cache to reduce my bandwidth usage. I''ve used the method suggested by madrobby (http://mir.aculo.us/ 2005/08/28/internet-explorer-and-ajax-image-caching-woes) to try to catch the HTTP_IF_MODIFIED_SINCE request header, and then return HTTP 304 if necessary. However, this only seems to work reliably with Firefox and IE7, and not Safari. Oddly, even with Firefox, I don''t actually see the HTTP 304 response in my lighttpd logs though. Does anyone know of a practical solution to this? FYI, I...
2007 Jan 12
3
Large file storage in database
I''m in the planning stage of an app that will store images and short video clips approximately 1 meg in size from user uploads. My partner wants to use the database to store all of the files, mainly for scaling purposes. I recently built a similar app using the filesystem, but that was to be run from a single machine. This new app will have 3 application servers and a fileserver