• Despite all the googling , trying everything I can find, and tweaking every single setting within w3tc, some files insist on having a 4 hour cache expiration. I have looked at my .htaccess file and the expiration dates are well above 4 hours.

    When I run gtmetrix against my site, I get this:

    https://www.*****.com/wp/wp-content/plugins/jetpack/_inc/jquery.inview.js (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/_inc/jquery.jetpack-resize.js (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/_inc/postmessage.js (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/modules/likes/queuehandler.js (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/modules/photon/photon.js (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/modules/sharedaddy/images/loading.gif (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/modules/sharedaddy/sharing.js (4 hours)
    https://www.*****.com/wp/wp-content/plugins/jetpack/modules/wpgroho.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/menu/menu-classic-dark.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/shape/main-top-stretch-light.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/style/light/comment.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/style/light/sidebar-right-bottom.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/style/light/sidebar-right-top.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/style/light/sidebar-right.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/images/layout/style/light/text-gradient.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/assets/js/alyeska.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/images/elements/image-overlay-icon.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/images/parts/social-media-color_24x24.png (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/flexslider.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/hoverintent.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/magnificpopup.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/nivo.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/roundabout.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/superfish.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/js/themeblvd.min.js (4 hours)
    https://www.*****.com/wp/wp-content/themes/alyeska/framework/assets/plugins/bootstrap/js/bootstrap.min.js (4 hours)
    https://www.*****.com/wp/wp-content/uploads/2016/06/wood-blue.png (4 hours)
    https://www.*****.com/wp/wp-includes/js/jquery/jquery-migrate.min.js (4 hours)
    https://www.*****.com/wp/wp-includes/js/jquery/jquery.js (4 hours)
    https://www.*****.com/wp/wp-includes/js/wp-embed.min.js (4 hours)
    
    My .htaccess file shows  this
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType text/css A31536000
        ExpiresByType text/x-component A31536000
        ExpiresByType application/x-javascript A31536000
        ExpiresByType application/javascript A31536000
        ExpiresByType text/javascript A31536000
        ExpiresByType text/x-js A31536000
        ExpiresByType text/html A31536000
        ExpiresByType text/richtext A31536000
        ExpiresByType image/svg+xml A31536000
        ExpiresByType text/plain A31536000
        ExpiresByType text/xsd A31536000
        ExpiresByType text/xsl A31536000
        ExpiresByType text/xml A31536000
        ExpiresByType video/asf A31536000
        ExpiresByType video/avi A31536000
        ExpiresByType image/bmp A31536000
        ExpiresByType application/java A31536000
        ExpiresByType video/divx A31536000
        ExpiresByType application/msword A31536000
        ExpiresByType application/vnd.ms-fontobject A31536000
        ExpiresByType application/x-msdownload A31536000
        ExpiresByType image/gif A31536000
        ExpiresByType application/x-gzip A31536000
        ExpiresByType image/x-icon A31536000
        ExpiresByType image/jpeg A31536000
        ExpiresByType application/json A31536000
        ExpiresByType application/vnd.ms-access A31536000
        ExpiresByType audio/midi A31536000
        ExpiresByType video/quicktime A31536000
        ExpiresByType audio/mpeg A31536000
        ExpiresByType video/mp4 A31536000
        ExpiresByType video/mpeg A31536000
        ExpiresByType application/vnd.ms-project A31536000
        ExpiresByType application/x-font-otf A31536000
        ExpiresByType application/vnd.ms-opentype A31536000
        ExpiresByType application/vnd.oasis.opendocument.database A31536000
        ExpiresByType application/vnd.oasis.opendocument.chart A31536000
        ExpiresByType application/vnd.oasis.opendocument.formula A31536000
        ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
        ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
        ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
        ExpiresByType application/vnd.oasis.opendocument.text A31536000
        ExpiresByType audio/ogg A31536000
        ExpiresByType application/pdf A31536000
        ExpiresByType image/png A31536000
        ExpiresByType application/vnd.ms-powerpoint A31536000
        ExpiresByType audio/x-realaudio A31536000
        ExpiresByType image/svg+xml A31536000
        ExpiresByType application/x-shockwave-flash A31536000
        ExpiresByType application/x-tar A31536000
        ExpiresByType image/tiff A31536000
        ExpiresByType application/x-font-ttf A31536000
        ExpiresByType application/vnd.ms-opentype A31536000
        ExpiresByType audio/wav A31536000
        ExpiresByType audio/wma A31536000
        ExpiresByType application/vnd.ms-write A31536000
        ExpiresByType application/font-woff A31536000
        ExpiresByType application/vnd.ms-excel A31536000
        ExpiresByType application/zip A31536000
    </IfModule>

    4 hours is 14,400 seconds, and I don’t have that number anywhere. This is driving me bonkers… hopefully someone else has encountered this same problem

Viewing 1 replies (of 1 total)
  • Perhaps worth trying to edit your .htaccess with something like:

    https://varvy.com/pagespeed/leverage-browser-caching.html

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    ## EXPIRES CACHING ##
Viewing 1 replies (of 1 total)
  • The topic ‘W3TC 4 Hour "short freshness lifetime"’ is closed to new replies.