[Resolved] how do i do this with gp elements?

Home Forums Support [Resolved] how do i do this with gp elements?

Home Forums Support how do i do this with gp elements?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #812180
    sparkle

    i’m trying to implement this browser cache solution and have tried, with no joy, putting the scripts in my child theme and in the gp elements for the header. where is the best place to implement the non-htaccess part of this?

    #812397
    epickenyan

    The first solution is for blogspot.com blogs while the second is for WordPress. If you want a custom code inside the .htacess file, try this one.

    <IfModule mod_expires.c>
    AddType application/font-woff2 .woff2
    ExpiresActive On
    ExpiresDefault A0
    ExpiresByType video/webm A10368000
    ExpiresByType video/ogg A10368000
    ExpiresByType video/mp4 A10368000
    ExpiresByType image/webp A10368000
    ExpiresByType image/gif A10368000
    ExpiresByType image/png A10368000
    ExpiresByType image/jpg A10368000
    ExpiresByType image/jpeg A10368000
    ExpiresByType image/ico A10368000
    ExpiresByType image/svg+xml A10368000
    ExpiresByType text/css A10368000
    ExpiresByType text/javascript A10368000
    ExpiresByType application/javascript A10368000
    ExpiresByType application/x-javascript A10368000
    ExpiresByType application/font-woff2 A10368000
    </IfModule>
    #812407
    Tom
    Lead Developer
    Lead Developer

    Looks good to me, epic – thanks for sharing! ๐Ÿ™‚

    #814933
    sparkle

    ok. thanks epic!

    so with this solution, do i need to add the <include expiration=’7d’ path=’*.css’/> bits to my head? just adding your code to my .htaccess didn’t change the marks from gtmetrix or pingdom for browser cacheing.

    #814983
    Tom
    Lead Developer
    Lead Developer

    No, I don’t believe so. That looks specific to Blogger (not WordPress).

    It’s possible that your hosting ignores those variables in your .htaccess, and that you need to get them to add the caching to your server.

    #815389
    sparkle

    maybe. i’ll ask. thanks.

    #815773
    Tom
    Lead Developer
    Lead Developer

    No problem.

    #817741
    sparkle

    fyi, they did have a very specific cache header for the htaccess. thanks.

    #818207
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.