add ajax cache method