Я переделываю весь веб-сайт, и браузер использует кэшированные index.html
страниц с одинаковым URL.
Это все содержимое файла .htaccess
в одном изкаталоги проблем:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /products/
# Remove 'index.html' from the URL for old links that include it.
RewriteCond %{THE_REQUEST} ^.*\index\.html?\ HTTP/
RewriteRule ^(.*)index\.html?$ "/products/$1" [R=301,L]
# Use index.php for all requests.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /products/index.php [L]
</IfModule>
# An atempt to tell the browser not to use a cached .html file.
ExpiresActive on
ExpiresByType text/html "access plus 0 seconds"
<FilesMatch "\.(html)$">
Header set Cache-Control "private, must-revalidate"
</FilesMatch>
Я пробовал несколько вещей здесь, но ничего не работает.Это все, что я вижу в заголовках:
Request URL:http://www.example.com/products/
Request Method:GET
Status Code:200 OK (from cache)
Нет заголовков запросов или заголовков ответов.
Думаю, я могу попробовать RewriteRule, чтобы добавить что-то вроде ?28032012
до конца чего-то, но я не знаю, как даже попытаться это сделать.