fixing ajax calls for cache