Answer the question
In order to leave comments, you need to log in
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"/>
Answer the question
In order to leave comments, you need to log in
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');
$.ajaxSetup({ cache: false });
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question