Is there way to determine the last modification time of a file via HTTP? Specifically, I''d like to not download or parse a very large RSS file (300+ items) if it hasn''t changed. TIA, Jeffrey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hubert Łępicki
2009-Jan-19 12:35 UTC
Re: Determine modification time of remote (http) file
Hi, there is 304 HTTP response code that says "not modified". However, you''ll not be able to use it unless RSS file provider is actually serving this response to you. I know apache for static files does just that, but if on the other end is application that doesn''t provide caching for RSS feeds (sic!) you''re toast. H. On 18 Sty, 15:33, "Jeffrey L. Taylor" <r...-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org> wrote:> Is there way to determine the last modification time of a file via HTTP? > Specifically, I''d like to not download or parse a very large RSS file (300+ > items) if it hasn''t changed. > > TIA, > Jeffrey--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeffrey L. Taylor
2009-Jan-19 13:44 UTC
Re: Determine modification time of remote (http) file
Quoting Hubert Łępicki <hubert.lepicki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Hi, > > there is 304 HTTP response code that says "not modified". However, > you''ll not be able to use it unless RSS file provider is actually > serving this response to you. I know apache for static files does just > that, but if on the other end is application that doesn''t provide > caching for RSS feeds (sic!) you''re toast. >Thank you. I tried using the -N flag of wget on the largest feed and it doesn''t appear to support the last_modified meta tag (or whatever it''s called, I''m still learning). I may eventually implement the feature, but it won''t help with the immediate problem. Thanks, Jeffrey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---