Oh so you are asking for If-Modified-Since supported for GAE serving static files. I believe that's not supported, but you could write a handler that does the static file serving out of a zip file (to avoid the file limit). Your handler should handle If-Modified-Since.
That said, the static file serving in GAE supports cache controls: http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Handlers. That might be an alternative to conditional fetches. - alkis 2010/3/16 JC <[email protected]> > I see what you mean. > > In my case, the resource (with .xap extension, don't know if that > matters) resides in GAE server as part of the deployed web app; there > is not URL Fetch to fetch the resource from outside server. The > resource is not located in the WEB-INF directory either; it is located > under a directory called ClientBin under root. It is a static file > that I thought should be treated like other static files; say, a jpg > file. > > > On Mar 16, 2:15 am, Alkis Evlogimenos ('Αλκης Ευλογημένος) > <[email protected]> wrote: > > Ermm.... ok lets try for a third time :-). Say you have a GAE app and you > > fetch pages from cnn.com. If cnn.com does not support If-Modified-Since > then > > you are never getting 304's back, no matter what headers you put in your > > request. It has nothing to do with GAE. > > > > In the example above "server" is cnn.com. > > > > - alkis > > > > 2010/3/16 JC <[email protected]> > > > > > > > > > Are you saying that not all GAE servers running in the Google data > > > center support If-Modified-Since? Can you elaborate a bit more? The > > > Java app was deployed to GAE data center which I assume is running the > > > latest 1.3.1 which claims to support conditional Get. > > > > > On Mar 15, 6:15 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > <[email protected]> wrote: > > > > With server I mean the server you are fetching pages from. That > server > > > might > > > > not have support for If-Modified-Since. > > > > > > - alkis > > > > > > 2010/3/16 JC <[email protected]> > > > > > > > Thanks for the prompt reply! > > > > > > > I don't quite understand what you meant by server not supporting > it. > > > > > It is running against central GAE server, not my local development > > > > > server. > > > > > > > As for the date format, This is the dump of the HTTP header through > a > > > > > network sniffer as follow.. It seems to be conforming to HTTP spec. > Do > > > > > you see anything wrong? > > > > > > > GET /ClientBin/oob.xap HTTP/1.1 > > > > > If-Modified-Since: Tue, 16 Mar 2010 00:28:17 GMT > > > > > User-Agent: Silverlight > > > > > > > Thanks, > > > > > > > On Mar 15, 2:22 pm, Alkis Evlogimenos ('Αλκης Ευλογημένος) > > > > > <[email protected]> wrote: > > > > > > If-Modified-Since works in GAE. Either the server you are hitting > > > does > > > > > not > > > > > > support it, or you are sending it a timestamp it doesn't > understand. > > > > > > > > - alkis > > > > > > > > On Mon, Mar 15, 2010 at 6:28 PM, JC <[email protected]> wrote: > > > > > > > GAE 1.3.1 for Java includes a fix (issue 575) to support > > > conditional > > > > > > > get for static files. I have tried sending If-Modified-Since > Get > > > > > > > header to retrieve a static file from GAE, It always returns > 200 > > > (with > > > > > > > full payload) instead of 304 (unmodified) even though the > static > > > file > > > > > > > hasn't been changed for a while. I have cleared my browser > cache so > > > > > > > that the timestamp in the If-Modified-Since is current > timestamp. > > > It > > > > > > > doesn't seem to work. Has anyone used If-Modified-Since on > 1.3.1 > > > with > > > > > > > success? > > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > Google > > > > > Groups > > > > > > > "Google App Engine" group. > > > > > > > To post to this group, send email to > > > [email protected] > > > > > . > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<google-appengine%[email protected]> > <google-appengine%[email protected]> > > > <google-appengine%[email protected]> > > > > > <google-appengine%[email protected]> > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > > > http://groups.google.com/group/google-appengine?hl=en.-Hidequoted > > > > > text - > > > > > > > > - Show quoted text - > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Google App Engine" group. > > > > > To post to this group, send email to > [email protected] > > > . > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<google-appengine%[email protected]> > <google-appengine%[email protected]> > > > <google-appengine%[email protected]> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine?hl=en.-Hide quoted > > > text - > > > > > > - Show quoted text - > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine" group. > > > To post to this group, send email to [email protected] > . > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine%[email protected]> > <google-appengine%[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en.- Hide quoted > text - > > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
