티스토리 뷰
반응형
출처 : http://ultteky.egloos.com/10995758
익스 8에서 https로 하면 다운로드가 안되는데 8이하 버전까지 예외처리를 해줘야된다는~
[참고자료]
[처리내용]
처리 1) 아파이 웹서버 SSL 캐싱 설정
SSLSessionCache "shmcb:/supp1/apachedomains/all_domain/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
처리 2) 문제가 되는 브라우저에 대해 Pragma 제거
package net.e4net.eiwaf.web.util;
public static void noCache(HttpServletRequest request, HttpServletResponse response) {
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
if (request.getProtocol().equals("HTTP/1.1")) {
response.setHeader("Cache-Control", "no-cache");
}
}
public static void noCacheDownload(HttpServletRequest request, HttpServletResponse response) {
String reqScheme = request.getScheme();
boolean ieSSLBug = false;
if ("https".equals(reqScheme)) {
String userAgent = StringUtil.nvl(request.getHeader("User-Agent"), StringUtil.EMPTY);
if (userAgent.indexOf("MSIE 6") > -1
|| userAgent.indexOf("MSIE 7") > -1
|| userAgent.indexOf("MSIE 8") > -1) {
ieSSLBug = true;
}
}
String noCache = ieSSLBug ? StringUtil.EMPTY : "no-cache, ";
response.setHeader("Cache-Control", noCache + "no-store");
response.setHeader("Pragma", noCache);
response.setDateHeader("Expires", 0);
}
[알아봅시다]
Common Pragma header values:
- Pragma: no-cache
- Pragma: no-cache, xResetStrm=1
- Pragma: No-cache
- Pragma: cache
- Pragma: No-Cache
- Pragma: private
- Pragma: public
- Pragma: no-store
- Pragma: no-store, no-cache, must-revalidate
- Pragma: no cache
- Pragma: NO-CACHE
- Pragma: Private
- Pragma: no-cache, no-cache
- Pragma: no-cash
- Pragma: no-chache
- Pragma: no-store,no-cache
- Pragma: no_cache
- Pragma: nocache
반응형
'Web Development > Jsp' 카테고리의 다른 글
jstl 날짜 변환 (0) | 2016.08.12 |
---|---|
jstl 개행 방법 (0) | 2016.08.12 |
그냥 소소한 팁 JSPF (0) | 2016.08.12 |
브라우져벌 한글 깨짐 해결 하는 방법 (0) | 2016.08.12 |
html to Excel (jsp to excel) (0) | 2016.08.12 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- github image 첨부시 주의할점
- coroutine
- spring ExcelView
- JSP 세션
- MyBatis 팁
- mybatis Merge
- jstl 커스텀 태그
- java 설치
- java 특정문자 갯수구하기
- POE Excel 만들기
- 코루틴
- jstl split
- java 폴더구조 구하기
- 전자정부프레임워크 tiles
- Database#transaction
- Kotlin
- java 압축 풀기
- java calendar
- spring property
- jstl foreach
- JSTL
- java 설정
- POI EXCEL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함