An attempt to clean up ajax code related to cache

I suspect that this was to prevent a NPE. This all still behaves properly?