• Resolved jamesleo

    (@jamesleo)


    hello, should i remove Expires headers codes in my htaccess if i install WP
    Fastest Cache or PREMIUM one. thanks

    # If you don't use filenames to version, lower the CSS and JS to something like
    # "access plus 1 week".
    <IfModule mod_expires.c>
    ExpiresActive on
    
    # Perhaps better to whitelist expires rules? Perhaps.
    ExpiresDefault "access plus 1 month"
    
    # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
    ExpiresByType text/cache-manifest "access plus 0 seconds"
    
    # Your document html
    <FilesMatch \.(html|xhtml|xml|shtml|phtml|php|txt)$>
    ExpiresDefault "access plus 0 seconds"
    </FilesMatch>
    ExpiresByType text/html "access plus 0 seconds"
    
    # Data
    ExpiresByType text/xml "access plus 0 seconds"
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType application/json "access plus 0 seconds"
    
    # Favicon (cannot be renamed)
    <FilesMatch \.(ico)$>
    ExpiresDefault "access plus 1 week"
    </FilesMatch>
    ExpiresByType image/x-icon "access plus 1 week"
    
    # Media: images, video, audio
    <FilesMatch \.(gif|png|jpg|jpeg|ogg|mp4|mkv|flv|swf|wmv|asf|asx|wma|wax|wmx|wm)$>
    ExpiresDefault "access plus 1 year"
    </FilesMatch>
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType video/ogg "access plus 1 month"
    ExpiresByType audio/ogg "access plus 1 month"
    ExpiresByType video/mp4 "access plus 1 month"
    ExpiresByType video/webm "access plus 1 month"
    
    # HTC files (css3pie)
    ExpiresByType text/x-component "access plus 1 month"
    
    # Webfonts
    <FilesMatch \.(eot|ttf|otf|svg|woff)$>
    ExpiresDefault "access plus 1 year"
    </FilesMatch>
    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"
    
    # CSS and JavaScript
    <FilesMatch \.(css|js)$>
    ExpiresDefault "access plus 1 year"
    </FilesMatch>
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    
    # Static assets
    <FilesMatch \.(swf|pdf|doc|rtf|xls|ppt)$>
    ExpiresDefault "access plus 1 year"
    </FilesMatch>
    ExpiresByType application/x-shockwave-flash "access plus 1 year"
    ExpiresByType application/pdf "access plus 1 year"
    ExpiresByType application/msword "access plus 1 year"
    ExpiresByType application/rtf "access plus 1 year"
    ExpiresByType application/vnd.ms-excel "access plus 1 year"
    ExpiresByType application/vnd.ms-powerpoint "access plus 1 year"
    </IfModule>
Viewing 1 replies (of 1 total)
  • Plugin Author Emre Vona

    (@emrevona)

    this is not a premium feature. it exists in the free version as well.
    and you should remove the Expire headers rules from .htaccess file.

Viewing 1 replies (of 1 total)

The topic ‘htaccess’ is closed to new replies.