ОБСУЖДЕНИЕ

Кеширование в opera mini

3 сообщений1 просмотровОткрыта
#1
Хай народ. может кто сталкивался... сижу с оперы мини. она гадина кеширует стр мне же нужно убрать это. пробовал принудительно вырубить отсылая заголовки и через теги html. не помогает. мож кто сталкивался?
PHP

<?php

header("Expires: Mon,26 Jul1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D,dMYH:i:s") ."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo '<? xml version="1.0" encoding="utf-8"? > <! DOCTYPE html PUBLIC "-// WAPFORUM// DTD XHTML Mobile 1.0// EN" "http:// www.wapforum.org/DTD/ xhtml-mobile10.dtd"> <html xmlns="http:// www.w3.org/1999/ xhtml"><head>
<link rel="stylesheet" type="text/css" href="style.css?V='.rand().'"/>
<metahttp-equiv="Expires"content="Wed,26Feb199908:21:57GMT"><metahttp-equiv="Pragma"content="no-cache">
</head><body>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="img/favicon.gif">
Test';

echo'<style type="text/css">
font-family:Comic Sans MS;
</style></head><body>';
?>



#2
Все еще актуально
#3
KpuTuK, Код для страницы отдельно или запихать например в шапку

CODE
 
/*  укажем что кешинировать не надо */
header('Cache-Control: no-store, no-cache, must-revalidate');
header("Content-Type: text/html; charset=utf-8");
/* второй вариант задать время кешинирования страниц*/

header("Cache-control: public");
header("Cache-control: max-age=3600");
header("Content-Type: text/html; charset=utf-8");



Крайне редко можно увидеть в штакете например такое , соответственно настроим или вообще уберём
CODE
 ExpiresActive On
ExpiresDefault "access plus 8 seconds"
ExpiresByType image/x-icon "access plus 900 seconds"
ExpiresByType image/jpeg "access plus 900 seconds"
ExpiresByType image/png "access plus 900 seconds"
ExpiresByType image/gif "access plus 900 seconds"
ExpiresByType video/ogg "access plus 12 month"
ExpiresByType audio/ogg "access plus 12 month"
ExpiresByType video/mp4 "access plus 12 month"
ExpiresByType video/webm "access plus 12 month"
ExpiresByType application/x-shockwave-flash "access plus 200 seconds"
ExpiresByType text/css "access plus 900 seconds"
ExpiresByType text/javascript "access plus 900 seconds"
ExpiresByType application/javascript "access plus 200 seconds"
ExpiresByType application/x-javascript "access plus 200 seconds"
ExpiresByType text/html "access plus 200 seconds"
ExpiresByType application/xhtml+xml "access plus 300 seconds"
ExpiresByType text/xml "access plus 300 seconds"
ExpiresByType application/xml "access plus 300 seconds"
ExpiresByType application/json "access plus 300 seconds"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType text/x-component "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"



Еще может быть в самом скрипте в запросе в базу там код уже не помню