S
S
s_kiwi2014-07-21 11:26:20
JavaScript
s_kiwi, 2014-07-21 11:26:20

How to remove IE caching (php/smarty/ajax)?

Good afternoon!

There is a site written in code-igniter/smarty/ajax(jquery).
The problem is the following - we have a certain text (article), after editing it and redirecting it to view, a cached version opens. Only ctrl+f5 helps.

Caching in php itself is not used, only the standard one for smarty.
Added tags to head:

<meta http-equiv="Cache-Control" content="no-cache, no-store, max-age=0, must-revalidate"/> 
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="Expires" content="Fri, 01 Jan 1990 00:00:00 GMT"/>


no reaction.

3+ years of experience in PHP development, but this is the first time I've encountered such a problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2014-07-21
@s_kiwi

header('Content-Type:text/html; charset=UTF-8');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: private, no-cache');
header('Pragma: no-cache');

Well, stackoverflow.com/questions/4303829/how-to-prevent...
$.ajaxSetup({ cache: false });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question