为什么不缓存 OPTIONS 调用?

Why no caching of the OPTIONS call?

我一直在尝试缓存一个 OPTIONS 调用,但是在查看 http.js 的 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 端点的数据类型,这通常是我想要缓存的内容。是否有特定原因不使其可缓存?

github问过,以后好像要改了。