1

In other words: Can I respond with a 304 and have it "just work"?

Franky-D
  • 450
  • 4
  • 16
  • Isn't AMF a binary data format? How can a format support caching? I believe if you want to cache data, you'll have to implement such caching mechanisms yourself. – JeffryHouser Sep 30 '10 at 14:48
  • 1
    Yes, AMF is a binary format, but it is transported via HTTP - which means I should be able to use built-in browser caching using HTTP headers to control expiration. I'm just not sure if this works with any of the AMF libraries. – Franky-D Sep 30 '10 at 15:03

1 Answers1

3

By default Flex's RemoteObject and BlazeDS handle AMF requests as POSTs so they won't cache in the browser. You could change that by implementing your own servlet that serializes GET responses as AMF. Then on the Flex side use URLLoader to make the request. That might cause the browser to cache the response.

James Ward
  • 29,283
  • 9
  • 49
  • 85