mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-26 22:35:15 +08:00
committed by
Peter Bacon Darwin
parent
986c446aaf
commit
eab5731afc
@@ -945,7 +945,8 @@ function $HttpProvider() {
|
||||
promise.then(removePendingReq, removePendingReq);
|
||||
|
||||
|
||||
if ((config.cache || defaults.cache) && config.cache !== false && config.method == 'GET') {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user