Injecting a cache lookup (dataFilter) for 304 (Not Modified) responses
I'm asking here for input before I submit a feature request in case there is a better way to handle cache lookups for 304 response codes.
We are implementing our own object cache because the ifModified support on different browsers feels rather flaky and it is very important to us that we optimize bandwidth for all clients.
In order to do this somewhat transparently to the developers, our framework is injecting a beforeSend and dataFilter function into each $.ajax request.
The problem is that the dataFilter function is not called for 304 (Not Modified) responses. I've hacked our jQuery source to call dataFilter on 304 responses, but I'd really rather not have to do that. Is there a reason why the standard jQuery should not do this? Or is there a better way to inject a cache lookup for 304 responses?
Thanks in advance for any feedback!