The “Update CSS/JSS” menu in the admin toolbar is not internationalized:
The 'Update CSS/JS'
string in this line is missing the __()
function:
$wp_admin_bar->add_menu(
array(
'id' => 'pbc_update_css_js',
'title' => 'Update CSS/JS',
'parent' => false,
'href' => $update_url,
'group' => false,
'meta' => array(),
)
);
]]>
Hey all – love this plugin. I recently just upgraded our site’s ecommerce functionality to integrate with Braintree. When the plugin tries to connect to PayPal, this plugin appends the version to the API request, causing it to break.
Is there a way to stop this plugin’s functionality on specific files / or pages? Thank you.
Hi,
I’m getting an syntax error when the plugin is activated. And it’s pointing to the DOCHTML declaration. Please see attached screenshots:
]]>Hi i m trying to disable the plugin but everytime i try it compleatly breaks the site
need help
]]>I installed the plugin “Prevent Browser Caching” but the browser still shows cached pages to the user.
Once logged in moving to pages visited previously as anonymous user, causes their cached version to be displayed. It means that “Log in” link will appear, despite the fact that user is already logged. Refreshing page will correct menu link, displaying “Log out”, but it can’t be a solution from user point of view.
Please advise what can be the solution. How to make login / logout links cache independent?
]]>When i try to activate the exteention i get : This extension does not have a valid header.
]]>It looks like this plugin adds a menu to the top of the WP Dashboard: Update CSS/JS.
It is linked to /wp-admin/index.php?pbc_update_css_js=5c38210d10
But when you choose it, there is no sort of response. It would be good to add some sort of notice, if the cache has been cleared or it has changed the “ver” parameter. What is it supposed to do?
]]>Hi, just installed Prevent Browser Caching plugin, and when I tried to activate it got a ‘The plugin does not have a valid header’ error. Any suggestions? Thank you.
]]>Hi,
I have a suggestion for 2 options that would be useful:
– Clear cache only for specific roles.
– Load a new file only if it has been changed and cache all other files.
Cheers,
Jovan
Hi,
Thank you for the great plugin.
It’s been working well, but I’ve come across and issue.
I add all of the CSS as stylesheets.
I edit the CSS inside of those files with a File Manager plugin.
With your plugin, the cache is disabled and the new version of the file is used.
But, this doesn’t work when using Gutenberg.
I’m adding classes with a single rule that I can later use in the editor, because the styling options are limited.
The problem is that, the first version of the file is cached and later changes do not apply.
What can be done to solve this?
]]>The plugin is not working. After updating a page on my site the old version still apears when visiting the site.
https://kvdedrielinden.be
i am using the twenty twelve theme
I hope you can help me thanks
Hello –
Should’ve maybe read the comments here first before enabling this plugin on a WooCommerce site/store. This plugin was causing a conflict with the Checkout page and customers were not able to process orders. We are using the Authorize.net plugin by SkyVerge and we are notifying them of this conflict as well, but it may just be that the problem is with WooCOmmerce itself, and doesn’t matter what payment processor you use.
Just a heads up for anyone else coming here for answers. Not sure of a workaround yet because this plugin works fantastic on other sites of ours and will continue to use it.
]]>Hi
Just a heads-up really – I see you changed your URL in the comments at the beginning of file prevent-browser-caching.php without changing the version number. The result, for those of us using Wordfence, is a blizzard of emails from every website we manage, ‘warning’ us of a file having been changed.
I’m familiar with this issue, but inexperienced users (especially those managing just one or two websites) who don’t haven’t seen this before can panic, and think their site has been compromised. A ‘minor version’ change, like (say) 2.3.2.1, while admittedly it triggers everybody to update the whole plugin, at least indicates that a bona fide change has been made ??
Many thanks – and great plugin (as I said in my review) – much appreciated!
]]>Hi, I tried to use the option every XX minutes but it doesn’t appear to be working.
Can you tell me, how is that called? Via some cron process?
]]>Hi,
Your plugin is excelent, but unfortunately it creates some problems with the minicart in woocommerce.
For example if you enter the site, add an item to the cart then the site creates a cookie/session for you and if you visit the site later it shows the cart contents in the minicart
Well now since I activated your plugin the minicart shows empty when you revisit the site later. If i refresh the page then all the items appear. But for the first time it says 0 items
Deactivating the plugin fixes the problem
So, i think woocommerce or another woocommerce related plugin does not like this.
Is there a way i can exclude a folder or multiple files by a code in the functions.php file perhaps ?
Either to exclude files or to add the list of files i want to use the versioning for
Thank you in advance !
]]>I’m having trouble with the Woocommerce my account area holding on to browser cache. I am using Elementor and update the page frequently to change the design, add new menu tabs etc and it seems like some people do not see the updated version, so I’d like to try to figure out a way to exclude it from being cached by the browser. Will you plugin do that so it shows the updated items?
Also, can I just configure it to work on a single page and not all pages?
]]>Looks like you have an admirer. Copy & paste of your project. Disable Version Caching – Khanakia
Is there any way that I can target a specific plugin or script with your plugin?
]]>I get the following error many times throughout the day.
PHP Warning: Cannot modify header information – headers already sent in …/wp-content/plugins/prevent-browser-caching/includes/class-prevent-browser-caching.php on line 114
]]>I installed this plugin yesterday and thought it worked great until a few customers contacted me saying they cannot enter the credit card information on a checkout page. When I disable this plugin, it works fine. I’ve been missing orders because customers weren’t able to enter their credit card information. Please advise.
]]>I was hoping this would prevent content from displaying when the back button is clicked but doesn’t appear to do that. Is it supposed to?
]]>After activating the plug-in I realised that my PayPal buttons on the single product, cart and checkout pages had disappeared. Any chance you could help with this or have an advise?
]]>Is version 2.3.2 of Prevent Browser Caching compatible with PHP 7.4?
Thank you.
]]>Hi there, I noticed that having your plugin installed creates a massive caching file that keeps on growing to epic proportions, see https://prnt.sc/umd01i How do I avoid this from happening?
]]>Hi, I have deleted the plugin from my site (intend to install at a later date) However I am left with a problem. If I access the site from an email or whats app link (on mobile) the splash screen is still showing up before site is accessed. However if I type in url in browser (mobile) it’s ok, ie no splash screen. Can you help please.
]]>Hello,
I’m having a slight problem with your plugin.
We have the following settings set.
Do not update automatically and show “Update css/js” button on the toolbar.
We wanted to be able to manage when the cache would be updated, so we opted to do it manually when their is a change.
However, my client reported that they had didn’t see the changes we had made.
They had to refresh twice for the changes to show.
Can you assist me with finding the issue?
]]>Hi,
I’ve been looking for a plugin just like this one! My questions are:
Is there a way to make it fetch a new version only if the file was updated? Example:
Someone visits my website today and caches the CSS file. Comes back 3 days later. The CSS file was not modified so he uses the same cache.
Someone visits my website today and caches the css file. A few hours later I change the styling. He visits the site 2 hours after that and has the new version fetched.
My second questions is:
Is there a way that this plugin breaks my theme by adding the random numbers and making some of the plugins or code not find what it’s looking for?
I’m pretty new in WP. Sorry if the questions are dumb!
Thanks!
]]>Solved: I accidentally pasted something at the beggining of the css file.
Hi,
After manually updating CSS with the button, the website layout changed. Apparantly, the style.css of the child theme is dowloaded, but not applied to elements.
I have already tried multiple things like changing theme, dsiabling plugins, changing name of the stylesheet, adding filetime() stamp to prevent caching.
Can you please help?
Radim
]]>Hello,
I am using wonderpush.com and updated the notification prompt that is not being updated within my current browser but working fine for a first time visitor.
I did cleared all caches of breeze, varnish, redis, cloudflare and also installed your plugin to versioning all css and js files (that is working well) but it seems due that external scripts had not been versioned the push prompt is still loading the old one?
<noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript>
<script src=”https://cdn.by.wonderpush.com/sdk/1.1/wonderpush-loader.min.js” async></script>
<script>
I am not sure how to test wether it is the reason else I would append a simple ?ver=12345. Or is there anything else that still gets cached but not versioned? Such as images?
By the way, adding the “assets_version” directly within the plugin settings would be nice. Instead of manually into the functions.php
Thank you in advance!
]]>Hi There,
I’m really happy of the plugin and how its really working fine with all the browsers that we have tested for now, but what if we want to disable that ver=1578839895 that is generated next to every file in the view source.
what if we need to make everything to back to normal ?
Best Regards
]]>This plugin looks like it is could be what I need for my issue. On my site some pages are very different depending on whether the user is logged in or logged out. Browser caching is causing confusion because a user may log in but then be shown the logged-out version of a page, complete with login panel!
This plugin offers a solution: I can write code like:
prevent_browser_caching( array(
'assets_version' => is_user_logged_in() ? ‘logged_in’ : ‘logged_out’
) );
This should lead the browser to display the correct version of the page. Note that both versions of a page could be cached for some days and displayed as appropriate.
However, the returned text completely replaces the version number, thus:
With plugin not active: css?ver=3.1
With plugin active without own function: css?ver=3.128536473
Note that if the css is updated, this will force the new version of the page, even if the plugin has not updated the number it appends. In the above example, it might become css?ver=3.228536473
However, with my code above, I get: css?ver=logged_in
That is the returned string completely replaces the version number rather than being appended to it.
I think it should be appended so I get: css?ver=3.1logged_in
That way the displayed page will be updated if the css is updated, even if the logged in/out pages were available in the cache.
Thoughts?
]]>