静态化网站可不避免的使用ajax做局部更新, ajax请求也要考虑缓存问题
首次访问服务器
访问www服务器
nginx 判断文件是否存在,如果存在将文件显示出来
如果文件不存在,去cms服务器上查找,...访问www服务器
nginx 判断文件是否存在,如果存在将文件显示出来
如果文件不存在,去cms服务器上查找, 如果存在便返回给www服务器,并显示出来
如果cms上文件不存在,cms服务器便使用rewrite...error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html...;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one...502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}