15 분 동안 서버 캐시를 사용하여 setRequestProperty()에서 사용해야하는 것은 무엇입니까?15 분 동안 서버 캐시 사용
private HttpURLConnection httpCon = null;
httpCon = (HttpURLConnection) httpUrl.openConnection();
httpCon.setRequestMethod("GET");
httpCon.setRequestProperty("Connection", "Keep-Alive");
httpCon.setRequestProperty("Pragma","public");
httpCon.setRequestProperty("Cache-Control","maxage=900");
httpCon.setUseCaches(true);
ResponseCache 경로를 사용하는 경우 http://code.google.com/p/android/issues/detail?id=14537 버그에주의해야합니다. 2.3까지 Android가 finalize()를 호출하지 않거나 닫기() OutputStream에 –
나는 클라이언트와 서버에 대한 중간 HTTP 캐시를 설정해야 할 것 같아요. –