易截截图软件、单文件、免安装、纯绿色、仅160KB

html、asp、php、jsp 禁止缓存的方法

HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

ASP:
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")

JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");


相关文档:

我的php验证码类


<?php
/*
 * Created on 2010-3-11
 * author:zhangfei
 *我的验证码类
 */
 session_start();
 class Check_Class{
  public $h_img ;
public $c_back ;
public $c_front ;
//构造函数
function Check_Class(){
$h_img  =  imagecreate(100,30);
......

JSP的分页实现!

package com.gc.tool;
import java.util.ArrayList;
import java.util.List;
public class MyPagination {
    private int recordCount = 0;
   
    private int pagesize = 0;
   
    private int maxPage = 0;
  &n ......

jsp缓存处理

今天总算把
response.setHeader("progma", "no-cache");
            response.setHeader("Cache-Control", "no-cache");
            response.setDateHeader("Expires" ......

jsp读取配置文件乱码解决

Properties properties = new Properties();
   
    File file = new File(request.getRealPath("/") +"\\WEB-INF\\classes\\configs.properties");
    FileInputStream fiStream = new FileInputStream(file);
    InputStreamRe ......

asp_数据库操作封装

一、conn.asp
<%
  '@Language="VBSCRIPT" CODEPAGE=65001  
  'meta http-equiv="Content-Type" content="text/html; charset=gb2312"  
  ' 936  utf-8
  class TDB
    function qry(byval sqlquery)
 & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号