複製:
画像の 304 HTTP コード (キャッシュされたコンテンツ) しか受信していないことに気付きましたが、JavaScript や CSS は受信していません。
私の .htaccess ファイルは次のとおりです。
Options -Indexes
Options +FollowSymLinks
# Enable ETag
FileETag MTime Size
# Set expiration header
ExpiresActive on
ExpiresDefault "access plus 1 week"
# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/x-javascript text/javascript application/javascript application/json
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Set header information for proxies
Header append Vary User-Agent
JavaScript や CSS ではなく、画像のみがキャッシュされる理由を知っている人はいますか?