过期标题不起作用

时间:2015-06-29 09:19:59

标签: php apache .htaccess

在多个SEO测试中,我收到了回复

  

您的网站未对所有图片使用过期标题。

但是,这是我的<ListView android:id="@id/android:list" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:fastScrollEnabled="true" android:fadeScrollbars="true" android:dividerHeight="0dp" android:divider="@null" > </ListView>

的一部分

htaccess的

.htaccess

以下是标题:

效应初探

# Expires Headers
<IfModule mod_expires.c>

    # Enable expirations
    ExpiresActive On

    # Default directive
    ExpiresDefault "access plus 1 month"


    # My favicon
    ExpiresByType image/x-icon "access plus 1 year"

    # Images
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"

    # CSS
    ExpiresByType text/css "access plus 1 month"

    # Javascript
    ExpiresByType application/javascript "access plus 1 year"

</IfModule>

请求

HTTP/1.1 304 Not Modified
Date: Mon, 29 Jun 2015 09:25:36 GMT
Server: Apache
Connection: Keep-Alive
Keep-Alive: timeout=2, max=100
Expires: Wed, 29 Jul 2015 09:25:36 GMT
Cache-Control: max-age=2592000
Vary: User-Agent

为什么这不起作用,如何解决?

0 个答案:

没有答案
相关问题