• Resolved hughforsyth

    (@hughforsyth)


    Hi Frank,

    I’ve got a small compatibility issue with SuperCache. Is there any way to specify a different directory for the cache files?

    I recently updated to 1.70 and enabled the “Save aggregated script/css as static files” which I really like? I’ve now switched this off.

    The problem is that the max age was being set to 3 seconds. This ws being set by Supercache which adds the following .htaccess file to /wp-content/cache/ directory (and therefore /wp-content/cache/autoptimize).

    # BEGIN supercache
    <IfModule mod_mime.c>
    <FilesMatch “\.html\.gz$”>
    ForceType text/html
    FileETag None
    </FilesMatch>
    AddEncoding gzip .gz
    AddType text/html .gz
    </IfModule>
    <IfModule mod_deflate.c>
    SetEnvIfNoCase Request_URI \.gz$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
    Header set Vary “Accept-Encoding, Cookie”
    Header set Cache-Control ‘max-age=3, must-revalidate’
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html A3
    </IfModule>

    # END supercache

    It’s not a fault with your plugin and maybe SuperCache should put the .htaccess in /wp-content/cache/supercache/. But an easy fix would be for me to move the Autoptimize folder to /public_html/wp-content/autoptimize.

    I’ve tried worked around this by adding a .htaccess file to /public_html/wp-content/cache/autoptimize. This worked but got deleted whenever I purged the Autoptimize cache.

    I’ve now switched back to dynamic but it would be nice to switch it back on..

    Thank you for your plugin. It’s great and the only minify I’ve ever been able to get to work well.

    The site is https://www.unitedworldschools.org/

    Thanks

    https://www.ads-software.com/plugins/autoptimize/

Viewing 15 replies - 61 through 75 (of 86 total)
  • Plugin Author Frank Goossens

    (@futtta)

    For Autoptimze: no (as AO does not serve text/html)

    For general performance reasons; depends. You could set that to 3600, in which case your base HTML (posts/ pages/ categories/ …) can be cached (by browsers or proxies) for one hour, but in that case changes to those pages won’t be visible. So I wouldn’t touch that, really ??

    Hallo Futta, I hope have been fine. I was just calling with somebody who said me he sees one of my properties on the page number one, although it is already since 2 days on the page 2 as I added few new properties. Any idea what I am doing wrong? Why is it serving to people old website when it was updated 2 days ago?

    Plugin Author Frank Goossens

    (@futtta)

    No idea I’m afraid; normally WP Super Cache allows pages to be cached for only 3 minutes?

    You see:-( And I even posted that issue with the message “function wpcache_broken” but that holy shmoly guy who figure that out is not replying….I am just reading his blog and trying to make sense out of what he is talking about, I hope I can figure out something more although I doubt that:-(

    I also pushed on the delete cache under content and then I checked on a different computer and only than the site was updated with the new content. I also have pushed several other buttons, which I have no clue what they are for and I am just waiting what will happen. I always think perhaps I am lucky:-)

    Anyway Futta thank you and have a nice evening!

    Josef Seidl

    (@blogitsolutions)

    Hi,

    thanks for the solution of this problem and identifying a bug in WP Super Cache. However, I really don’t know why WP Super Cache also uses Cookies? Has anyone an idea?

    The problem with cookies is the following: If I try to measure the speed of my site with webpagetest.org, the php files which AO makes (css + js) are not able to cache in the repeat view because of the cookies. If I disable the cookies in the .htaccess via changing the code in WP Super Cache, all seems to be fine and the php files aren’t displayed in the Repeat View section of webpagetest.org.

    Plugin Author Frank Goossens

    (@futtta)

    I guess you’re referring to
    Header set Vary "Accept-Encoding, Cookie"

    (and specifically the “Cookie”-part in it) in WP Super Cache’s code? That is needed to differentiate requests for cached pages of anonymous vs logged in users or visitors who commented.

    Now the good news: Autoptimize overrides this setting (as it does the Expires and Cache-Control values of WPSC) for all files from the cache/autoptimize directory.

    But there’s also bad news: there’s a small regression in version 1.7.3 which means that to enjoy the override, you’ll have to switch to Autoptimize writing out static files (one of the last options on the admin-page). I’ve started work on 1.8.0, the fix for this regression will be in there.

    Good morning Futta:-)So I am lost…Since I remove w3total cache and installed wp super cache+autoptimize my site is much faster, but also gone from search(I read somewhere that it is most likely because the HTML code change and google might prevent my site from showing as it might believe it has a problem)
    Also I have errors in wp super cache and the author of the plugin is not replying:-(
    When I view the cached pages there are some mobile pages like https://mysite.com/blue-marlin-seafood-restaurant-diani/index-mobile.html.gz or https://mysite.com/rent/kinondo-kwetu/index-wap.html and many others which I have never seen and when I open them they all lead to not found:-(
    Also when I view cached files it shows there Fresh WP-Cached Files and also Fresh Super Cached Files. I thought I have only super cache.
    Any advice please please please?

    Anyway, Mary Christmas and Happy New Year to all!
    July Ronder

    Plugin Author Frank Goossens

    (@futtta)

    well, your sites in google; https://www.google.be/search?q=site:villasdiani.com

    best thing to do would be to try out google webmaster tools. once you’re enrolled they’ll tell you if there’s anything wrong with your site and how you can fix it.

    a merry christmas & happy new year to you and your loved ones as well!
    frank

    Thank you very much Frank:-) you always take me out of my misery:-)I see the site is indexed, even I have noticed that my page rank was 2 and is suddenly 4.
    I am using webmaster, I spent there hours by monitoring. There it seems all right, only some not found and 1 soft error of a tag which I removed and it is still apparently showing in result instead of turning 404.
    Well I guess at least the increased page rank made my day:-)Perhaps I float over the New Year and then start again:-)
    Happy New Year Frank to you and your Family! Haha, now we have Belgium chocolate also in a supermarket in Diani beach:-)

    Hallo Frank, maybe stupid question right away in the new year.
    When I view the last visitor on my site it says me that this link https://villasdiani.com/kenya-travel-advice-packing-list/ goes here https://villasdiani.uniquetropicaladventures.com/wp-content/cache/autoptimize/autoptimize_498bfb2de4d47c00d3dca0a6b99f6a58.php is it normal?
    Thank you:-)

    Plugin Author Frank Goossens

    (@futtta)

    That would be very weird. When I visit that page, I just see that page, not the the aggregated JS-file. So my best guess; this is just a fluke.

    Hallo Frank:-) Weird+Me goes normally together:-) Fluke? I know only human flukes, but believe me you do not want to know what is taht…
    I have viewed again cpanel and it still showing the same. For example this link https://villasdiani.com/rent/shimba-hills-cliff-lodge/ https://villasdiani.uniquetropicaladventures.com/wp-content/cache/autoptimize/autoptimize_4d0598a85b07f9ed62f76a20c95e48a4.php
    There are many like that.
    Also, I have a page which is showing properties locations on a map, is it possible that these cache plugins can be stooping it from displaying?
    Also, why am I the only one who is writing here problems? Am I the only one?:-( That is embarrassing:-(

    Plugin Author Frank Goossens

    (@futtta)

    Well, as https://villasdiani.com/rent/shimba-hills-cliff-lodge/ renders perfectly here, I see no problem.

    Regarding the properties locations; if this is javascript-based, you may need to exclude (some) of that from being optimized by Autoptimize. Where on your site can I access that map?

    Yes, I see also that is opening alright. I do not understand why is it showing different..I am using cpanel-hostgator

    This is the link to the map https://villasdiani.com/map/

    Plugin Author Frank Goossens

    (@futtta)

    do you use a specific wordpress plugins for that map?

Viewing 15 replies - 61 through 75 (of 86 total)
  • The topic ‘Expires/Max Age compatibility with SuperCache’ is closed to new replies.