Archive for April, 2011
Codeigniter best .htaccess rewrite
April 20, 2011
Leave a comment
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
Categories: Codeigniter
Codeigniter, htaccess
วิธีแก้ Cache แบบบ้าคลั่งของ IE8
April 20, 2011
Leave a comment
<?php // prevent caching (php) header('Cache-Control: no-cache'); header('Pragma: no-cache'); header('Expires: ' . gmdate(DATE_RFC1123, time()-1)); ?>
ของผมเอาไปใส่ไว้ใน tag <head> ของไฟล์ Header ใช้งานได้ดีทีเดียว
สำหรับภาษาอื่น ๆ ดูได้ที่ IE8 aggressive caching fix