• I have had to disable the MMR plugin in wordpress. Consequently, it deleted all the CSS and JS files in the MMR folder.

    This resulted in a funny behavior in the cache of google.

    In google search, I have entered site:mydomain.com
    Then, I have clicked on the cache of a page on a snippet.

    I have found that the CSS was gone and it loaded my page without the CSS. I went into the HTML code to find the link to the /mmr/xxxxx.css
    For sure I previously deleted the css.

    However, it is not over.
    Before disabling the MMR plugin, I have copied the /mmr folder to a backup folder.
    So, I have copied the content of the MMR backup in my /mmr folder.

    Then, I went to the cache again and found that my page looked good. This means that Google does not store the CSS file in its cache. It only stores the HTML and then call the CSS file that is listed in the HTML code.

    That’s why I would like to ask you. how long is a CSS file available in the MMR folder before getting automatically deleted?

    Then, maybe, it would be nice to have a message prompting when we disable the plugin. Something like “would like to delete the /mmr folder?”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    I see what you mean. I didn’t realise the Google cache is only the html.
    MMR removes the previous cache as soon as the new file is created. Perhaps we should have an option to specify how long you want to keep the cache file for after it has expired.

    I’m not sure if you can ask a question before disabling a plugin. I will investigate.. Alternatively we could have a setting to not delete the cache.

    Thread Starter bloup

    (@bloup)

    It would be great to store previous css/js files. For your information, the google cache, I have pages that haven’t been crawled since 2 months. And those old ones appear in the Google cache without CSS layout because the CSS file is gone since a while. In fact, I pressed a lot the purge cache and dug my own grave ??

    Thread Starter bloup

    (@bloup)

    Dear talented MMR developer.

    I have a new suggestion for you. Rather than recreating news CSS/JS file names like a6d10b61-1585730610.min.js

    You could do versioning by adding a parameter at the end of your generated css and js files so that there would be no need to keep a backlog of files.

    FOr example:
    You would name your css, /mmr/consolidated-mmr.css?ver=1.0 and then, you would increment the version the next time the file is generated if someone press “purge cache”. For example, the new file could be /mmr/consolidated-mmr.css?ver=1.1

    The same would apply to js files

    Doing so, if googlebot look for /mmr/consolidated-mmr.css?ver=1.0 even if the actual file is /mmr/consolidated-mmr.css?ver=3.0, it will return the right css file.

    ?? ?? ??

    • This reply was modified 4 years, 10 months ago by bloup.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google search engine does not store CSS files in the cache’ is closed to new replies.