WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Browser cache settings for media & other (4 posts)

  1. Pascal Dreissen
    Member
    Posted 4 years ago #

    Hi,

    I am curious if i am wrong here:

    I have set the browser cache expire header lifetime in the media & other files section (W3TC (0.91)) to 31536000 which is default (365 days).
    However what i change does not set in .htaccess, other sections work perfect.

    I am expecting it to change in .htaccess in this section is this correct ?

    <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$">
    <IfModule mod_headers.c>
    Header set Pragma "public"
    Header set Cache-Control "max-age=3600, public, must-revalidate, proxy-revalidate"
    </IfModule>
    FileETag MTime Size
    <IfModule mod_headers.c>
    Header set X-Powered-By "W3 Total Cache/0.9.1"
    </IfModule>
    </FilesMatch>

    What i am seeing is that the max-age= corresponds with the setting i make in the HTML section.

  2. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks, fixed in the upcoming release.

  3. Pascal Dreissen
    Member
    Posted 4 years ago #

    Great stuff... thanks, and confirmed with 0.9.1.1 it is working as expected ;)

  4. Frederick Townes
    Member
    Plugin Author

    Posted 4 years ago #

    Cool.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic