---
title: "ajax防止缓存生成"
author: "gengshu1111"
date: "2011-02-13T10:18:37Z"
tags: []
categories: ["编程语言"]
slug: "ajax"
draft: false
lastmod: "2011-02-13T10:18:37Z"
id: 905143
url: "https://bryant24.iteye.com/blog/905143"
---

```java

ob_end_clean();
ob_start();
@header("Expires: -1");
@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
@header("Pragma: no-cache");
@header("Content-type: text/html; charset=utf-8");

```