제어 : 내 요청에 노 cache` 필드를 RSS 피드를 요청할 때캐시 제어 자바 스크립트 요청
나는 그것을 거부 난 콘텐츠 형의 경우 에 넣어해야하는지 값 종료 그림이 잘 작동 캔트하지만, Cachce-제어 올바르게 추가
코드 :
options = {uri :SUPPORT_FEED_URI,
headers : {
'Content-Type': 'application/x-www-form-urlencoded',
'Cache-Control': 'no-cache'
},
}
request.get(options)
.on('error', (err) => { reject(err); })
.pipe(feedparser)
.on('end',() => { return resolve(items); });
내가 요청 헤더에 무엇을 얻을 :
Accept:*/*
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Access-Control-Request-Headers:cache-control <-- doesnt seems to be right Want something like Cache-Control : no-cache
Access-Control-Request-Method:GET
Connection:keep-alive
Host: xxxx.yyyy.zz
Origin:http://127.0.0.1:8888
Referer:http://127.0.0.1:8888/webconsole/
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
content-type:application/x-www-form-urlencoded
,536,