0
リクエストでヘッダーのキャッシュに苦労しています。
私のリソースであるが以下のようになります。
method: 'GET',
cache: false,
headers: {
session: auth.mySession()
}
プロバイダも設定されています。
config(['$httpProvider', function($httpProvider) {
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
}
$httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache';
$httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
}]).
実際には機能しません。 セッションが削除されている間にリクエストが送信され、セッションが設定されていない場合は となります。 Ctrl + F5を押す必要がありました。