Firefox deprecated HTTP, and instead vigorously promote the action of HTTPS a stone to arouse thousands of waves, very many do not install the security certificate of the site using the new version of Firefox browser has been opened.
Before our site only involved the need to encrypt the part of the connection to the HTTPS protocol. Now it seems that you have to add HTTPS to the entire site connection. There was a problem with the normal function being performed. The case is that the Product List page uses AJAX to load the product and can no longer cache the good data as it did before. The reason for this situation is mainly two points, the 1th is the filter set in the background force each page does not cache content. The second reason is that the entire site is securely encrypted so that the browser itself is no longer page-cached. The problem is to set the force cache on pages that need to cache data, such as the following:
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" ><%@ page Language= "java" import= "java.util.*" pageencoding= "Utf-8"%><%@ taglib prefix= "C" uri= "http://java.sun.com/jsp /jstl/core "%><%@ taglib prefix=" FMT "uri=" http://java.sun.com/jsp/jstl/fmt "%><%@ taglib prefix=" FN "uri= "Http://java.sun.com/jsp/jstl/functions"%><%string path = Request.getcontextpath (), int nminutes = * 7;date D = new Date (); String moddate = d.togmtstring (); String expdate = Null;expdate = (new Date (D.gettime () + nminutes * 60000)). toGMTString (); Response.setheader (" Last-modified ", moddate); Response.setheader ("Expires", expdate); Response.setheader ("Pragma", "public"), Response.setheader ("Cache-control", "public");%>
In particular, note that the value of Cache-control and the value of pragma are "public".
Resolve an issue where HTTPS cannot be cached