Angularjs 为什么不缓存期权调用?

Angularjs 为什么不缓存期权调用?,angularjs,Angularjs,我一直在尝试缓存一个选项调用,但在查看http.js for angular时,我发现: if ((config.cache || defaults.cache) && config.cache !== false && (config.method === 'GET' || config.method === 'JSONP')) { cache = isObject(config.cache) ? config.cache : isObject(

我一直在尝试缓存一个选项调用,但在查看http.js for angular时,我发现:

if ((config.cache || defaults.cache) && config.cache !== false &&
    (config.method === 'GET' || config.method === 'JSONP')) {
  cache = isObject(config.cache) ? config.cache
  : isObject(defaults.cache) ? defaults.cache
  : defaultCache;
}
是否有理由将其设置为仅缓存GET和JSONP?在我的例子中,我想要获取绑定到REST端点的数据类型,这通常是我想要缓存的。有没有一个具体的原因使它不可缓存?

在中被问到,它似乎在将来会被更改