Why is the chrome extension not updating without removing it? - google-chrome

I have a chrome extension built using webpack.
When I make some code changes (in developer mode) and rebuild the extension, sometimes it updates automatically (I just need to close and reopen the ext icon.). Sometimes I need to reinstall the extension in order to apply the changes.
I tried to find a connection, but I could not find anything, it is completely random.
But worst of all, when I upload an extension to the Google Chrome store, I have the same situation. Users must completely delete and reinstall the extension for new features.
Who knows what it depends on and how to fix it?

Related

Chrome is not clearing cache

I am working on a new site and whenever I change CSS settings chrome will not accept those changes unless I close out of chrome completely with Task manager and relaunch it. I have a tried quite a few things. Below is a list of things I've tried:
Versioning the CSS file (I am using a PHP date stamp at the end of the CSS file
Enabling "Clear Cache while developer window is open" in the Developer console
Using Ctrl + F5 to clear cache on refresh
Going to Application and Clear Storage in the developer Console
Clearing Cache folder in local AppData
Deleting CSS file from stie, refreshing, and readding file.
Incognito mode
Adding Launch options to chrome shortcut --disk-cache-dir=null
Adding Browser Plugins to delete cache.
Anyone have any ideas how to help? It is extremely annoying and inefficient to close chrome every time I want to check a CSS change. Another annoyance is that I am trying to listen to music in the browser so if I close chrome I have to go back and get my music playing again and it's just as of now extremely annoying and way more time consuming than I want.
I've tried looking at other articles online about cache busting and other articles on Stack Overflow but I've tried to do most of what they suggest and I haven't seen any positive outcome yet. Most articles say to add some sort of random string or version on the end of the CSS file as a GET request but that isn't working though I know that has worked for me in the past.
pres f12 > f1 > network > disable cache (while DevTools is open). This should solve your problem
Development server was running various caching tools though they should have been turned off. After disabling them chrome started to work better and most of the time CTRL+F5 did the trick.
"clearing cache" is not as easy as it should be. Instead of clearing cache on my browsers, I realized that "touching" the server files cached will actually change the date and time of the source file cached on the server (Tested on Edge, Chrome and Firefox) and most browsers will automatically download the most current fresh copy of whats on your server (code, graphics any multimedia too). I suggest you just copy the most current scripts on the server and "do the touch thing" solution before your program runs, so it will change the date of all your problem files to a most current date and time, then it downloads a fresh copy to your browser:
<?php
touch('/www/sample/file1.css');
touch('/www/sample/file2.css');
touch('/www/sample/file2.css');
?>
then ... the rest of your program...
It took me some time to resolve this issue (as many browsers act differently to different commands, but they all check time of files and compare to your downloaded copy in your browser, if different date and time, will do the refresh), If you can't go the supposed right way, there is always another usable and better solution to it. Best Regards and happy camping. By the way touch(); or alternatives work in many programming languages inclusive in javascript bash sh php and you can include or call them in html.
I used to have the same problem, and I believe it's a (pretty annoying) bug with chrome. You can use the CSS Reloader Chrome Extension to solve it. Not ideal, but better
If you are trying out new CSS updates, I suggest using Chrome's "Inspect" function to dynamically update CSS settings and observe the results interactively. This may save some time during update cycles as compared to manual edits alone.
Another option to try is to define "cache-control" meta tags in your head section. For development/testing, you may want to have no caching. For a real website, you may want to have a shorter age limit. Refer to the following SO Q&A.
Using meta tags to turn of caching in all browsers?

Default search in Google Chrome locked to smartsputnik

I have deleted and created a new user, cleared history, cleared cache even uninstalled and then installed chrome again, but nothing. Any solution for that.
I have seen some software while searching on different websites but em afraid they can also b some sort of malware, what should i do, any Help......
You can change registry in Windows by running regedit.exe, usually you don't need external tools for that. A quick search for "smartsputnik" in regedit reveals that some Chrome-related entry contains a link to it. Changing it back to what it should be, that is e.g. what Chrome uses for its search query, should fix the issue. For my colleague it was
{google:baseURL}search?q=%s&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}
After the change, you can delete the offender from search engines as well, that seemed to be impossible while it was the default. That helped to restore Chrome itself, but this blog post says it will also append "http://smartsputnik.ru/?ri=1&uid=" as the argument to random shortcuts. That could be devious, but I've not observed that yet, will check and see.
BTW, my colleague did not install any software recently, so it looks like this malware learned a new trick.

Chrome - the strange case of the disappearing bookmarks

Just had an odd problem with Chrome(v43 on Linux-Fedora) I have never had before. I have a Google account I use in conjunction with Chrome and use it to keep my bookmarks sync'd between devices. This has worked flawlessly for years.
Then in the last few days I have begun to notice that many bookmarks have simply disappeared. Since I am the only one who uses this account I figure it must be some sort of syncing issue.
Going online to solve this problem I see that the majority simply involve restoring the Bookmarks file with the Bookmarks.bak file. This is where I noticed some strangeness. First both files are identical, and second, they both contain references to my missing bookmarks. So it appears that my missing Bookmarks are still safe in my Bookmarks and Bookmarks.bak file, but are simply not being picked up by chrome for whatever reason.
Any ideas as to why this might be happening and what to do to solve it?
Thanks
Just FYI that the answer was:
turn off Chrome's bookmark syncing (settings > advanced sync settings > uncheck 'bookmarks')
shut down all chrome browsers then delete your existing Chrome bookmarks file (location of this file will differ depending on your os)
rename your Bookmarks.bak file to Bookmarks
Important: in most cases it will be necessary to log out/reboot your machine since the bookmarks seem to cache even if you shut down and restart Chrome

Making Google Chrome leave itself alone

Let me preface this question by saying: It's crazy. I know it is. But the requirement is not mine, it's someone else's, and I'm trying to honor it.
I need to install a months-out-of-date version of Google Chrome so I can run repeated tests against it. But it's proving to be surprisingly difficult to turn Chrome updates off.
I did the trick of disabling the "Google Update" plugin in chrome://plugins. After that, I uninstalled Chrome and installed the old version. I double-checked that the version was the old version and that updating was non-functional ("error 3"). I didn't even see "Google Update" listed in chrome://plugins at all after this. So I thought I was good.
Then just now, I fired up Chrome to look at it again, and it was back to the newest version!
Is there something I overlooked? Are they doing some kind of black magic here?
Windows
For Microsoft Windows, here is the simplest and lowest-impact solution I have found.
Create a text file with these lines:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update]
"AutoUpdateCheckPeriodMinutes"=dword:00000000
"UpdateDefault"=dword:00000000
Save it to a file ending with ".reg" somewhere on your desktop. Double-click it to install new registry keys.
This disables automatic updates, and when you open "About Google Chrome" from the tool menu, you get the helpful message "Updates are disabled by the administrator."
Mac
(Instructions anyone may want to add for Mac OS can go here...)
Don't do this.
Really. I wasn't kidding. Updates are important.
See #1.
You're still here, so I can only assume that you're crazy enough to really want to turn off updates: http://support.google.com/installer/bin/answer.py?hl=en&answer=146164 explains how you can disable updates via policy. Editing registry entries locally should be effective.

Disable Application Cache in Chrome and Safari

I’m using the AppCache in order to enable offline access for a web app. The issue is that for development every time I make a change to my JavaScript I also need to make a change to the manifest (in order to trigger a re-download of the cached field). Now I know that in FireFox you can disable the AppCache (in fact you are prompted when you first visit the page whether to grant permission to web site to store data locally) which makes it a lot more convenient for development.
My question is there a similar option for chrome and safari?
I know that I can view/Edit the AppCache in chrome via chrome://appcache-internals/, what I’m looking for is a way to disable it.
Thanks
In Chrome, use Incognito Mode. Okay, it's probably not what it was originally intended for, but it does the job. Nothing gets cached, and now developers everywhere have a handy excuse for why they might be using Incognito Mode.
I assume there's similar 'Private Browsing' functionality available in Safari.
EDIT: I see from your comment that you want to disable Cache Manifest functionality only. Try starting Chrome from a Command Line with the --disable-application-cache switch.