This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
disabling chrome cache for website development
I'm working on a web app that is unfortunately built around frames. Before switching to Chrome, I used the web developer toolbar in firefox to disable cache. While I would rather do this for a single site, it worked well.
In Chrome, the Dev Console -> General -> Disable cache does not work all the time, but if I manually delete the cache it works fine. Some may say to just use the hard refresh shortcut, but the nature of my application would require me logging in each time I do this.
Is there anything else I can do? This would really save me a good bit of time in Dev and its the only remaining thing I miss from firefox :/
click on the wrench in the upper right hand corner of chrome and select "new incognito window". Using an incognito window will fix all your caching problems. I use it sometimes when developing, its useful.
There is a method that is not dependent on browser. If you surf to www.abc.com the browser might save data in cache. But, if you change the url, no chace will be used. So, just browse to www.abc.com?r=. This way the browser will think the page is different and will not use cache.
Hope this is help!
Web Developer is available for Chrome too. While it doesn't allow to completely disable caching it still has a very accessible "Clear cache" option.
There is also a wrench icon on the bottom right side where you can permanently disable cache. Take a look at this.
Related
I want to keep track from all the browser tabs I have opened. I searched it a bit and found out that I can achieve this with this command (for Chrome) chrome.tabs.query
So, do I need to build an extension for Chrome for this to work or I can achieve this with some Javascript code for example? (I think the first case)
Thanks in advance.
So, do I need to build an extension for Chrome for this to work
Yes. It would be a huge security problem if any website could monitor what happened in all other tabs open in the same browser.
or I can achieve this with some Javascript code for example?
Chrome Extensions are written in JS.
I am working on my website, but Chrome just decided to not clear my cache no matter what I do.
If I open the file (CSS and JS) on new tab, I can clearly see the new updated version is being loaded, but chrome itself does not use those files on my website.
I tried F5, CTRL+F5, SHIFT+F5, F12 + Empty Cache and Hard Reload, F12 and then CTRL+F5 (and also SHIFT+F5). I had this issue before and I tried removing it from local storage, deleting local storage file, uninstalling chrome and clearing all data that were not deleted.
Nothing works!
As I told, I had this issue before, and what I did was tenaming the file I edited. But I wont just keep renaming my files which I edit (or even adding a version query strings to them).
When I try Device mode (mobile emulation option in debug console on Chrome), it actually uses the new version of files there. But when I disable it, it goes back to old version in cache.
Any ideas? Its extremly annyoing and preventing me to work on my website, as any changes I do to CSS and JS are just being ignored.
Ps.: I know there is this question: Chrome WON'T clear cache... ctrl + F5 doesn't seem to work either, but the accepted answer its not working at all for me and your FAQ has nothing like: "What to do if you have same question that was once answered but answer does not work for you...".
Thanks.
Ok, so after couple hours, what actually worked was to go to:
Resources -> local Storage -> https://rankpoll.me -> remove everything -> Right click on refresh button -> select "Empty Cache and Hard Reload" -> voila
Thing is, that was not working couple hours before and also last time I had this problem, so IDK whats going on with my chrome.
In my case Data Saver extension was causing the problem.
Data saver extension can also prevent the changes to be applied. It minifies files to improve the performance.
This question already has answers here:
Open IE browser in Firefox/Chrome page
(4 answers)
Closed 7 years ago.
I am running my web application on Firefox. I have hyperlink on one of the page and when I click on it, it opens another application as a new popup.
But that application is not supported on Firefox. So I want to open it in Internet Explorer, i.e., though I am running the application on Firefox, that particular popup should open in Internet explorer. I am using this to open new window:
var win = window.open(url, "NewWindow", strFeatures);
You can't do this with just ordinary JavaScript; as Levi notes, if you could, that would be a usability and security nightmare.
That said, there are a couple of ways you could get something like this to work. For example, a Firefox add-on can launch external programs, so you could write such an add-on to open your app in IE, and ask your users to install it (or have an admin pre-install it for them, if this is e.g. for an in-house app in a managed workplace setting).
Another possibility might be to use a custom URL scheme (like myapp:) to link to your application, and register that URL scheme to be opened in IE (or, rather, in some kind of a wrapper script that takes the custom URL, converts it to a normal HTTP URL, and opens it in IE). Again, though, this requires configuring (and, probably, installing a script on) the end-user's computer, so it's probably only suited for office or similar environments.
Note that both of these solutions have security implications that you should keep in mind. In particular, any add-on or script you use for them should only work for specific URLs that point to your app, and should refuse to open any other URLs someone might try to feed it.
In any case, if you're trying to do this for a public website, keep in mind that there's no way you can make this work for Linux / Mac users who don't have IE to begin with. And even many Windows users might be reluctant to use IE (not to mention installing an untrusted extension!) without a very good reason; after all, there's presumably a reason why they chose to use Firefox (or Chrome or Opera or whatever) in the first place.
That's not possible and for good reason. Just think of what someone clever -- arguably -- could do if they could cause various programs to run on your computer because you clicked a link on a website...
This is what you're trying to do...run another native application from clicking a link in a browser.
Why not just use Internet Explorer for everything since it works for the pop up?
What I want to do is that when the user clicks a button I will add to firefox (or clicks an option I will add under tools, etc), a new tab should be opened, and in the tab will essentially be an offline website that is written in HTML/CSS/JS and will be part of the addon.
How can I do this? It does not matter to me if I require a very new version of firefox to accomplish this.
Making your first firefox addon can be quite challenging, at first. But once you make one, things get much better. Here are some tools to help you get started:
https://addons.mozilla.org/en-US/developers/tools/builder
I suggest you start with this and check all the features. Once you download the skeleton, look over ff-overlay.xul in the /chrome/content folder. It should be straightforward if you know XUL/Javascript.
https://developer.mozilla.org/en/Setting_up_extension_development_environment
This link helps you set up Firefox for easy addon testing and debugging.
https://developer.mozilla.org/en/Code_snippets/Tabbed_browser
The Mozilla Developer Network is incredibly useful. For example, that link takes you to a page that explains everything about switching tabs.
https://builder.addons.mozilla.org/
Addon playground.
Remember, Google's your friend! Good luck!
I like to keep javascript debugging enabled in my browser so when I'm developing my own code I can instantly see when I've made an error.
Of course this means I see errors on apple.com, microsoft.com, stackoverflow.com, cnn.com, facebook.com. Its quite fun sometimes to see just how much awful code there is out there being run by major sites but sometimes it gets really annoyed.
I've wondered for YEARS how to change this but never really got around to it. Its particularly annoying today and I'd really like to know of any solutions.
The only solution I have is : use a different browser for everyday browsing.
I'm hopin theres some quick and easy plugin someone can direct me to where I can toggle it on and off based upon the domain i'm on.
Edit: I generally use IE7 for everyday browsing
Firebug lets you enable/disable debugging for different domains.
Script Debugging in IE7 is controlled by a registry key. (An addon could probably toggle it. I just don't know of any.)
So, how I handle this is to write a registry script to turn it on or off. Then, I put a link to those scripts on my windows quick-launch bar and change their icons to be more appropriate. Then, I can just click one of the links to turn on or off IE script debugging.
Turn Off:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Disable Script Debugger"="yes"
"DisableScriptDebuggerIE"="yes"
Turn ON:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Disable Script Debugger"="no"
"DisableScriptDebuggerIE"="no"
Firefox lets you use different profiles. Each profile can have separate preferences, themes and plugins. Start firefox on Windows this way: firefox.exe -ProfileManager to create or manage profiles.
I use Firefox and Webkit for web debugging and Safari for regular web browsing, however. Firefox is just better for web development, and I prefer Safari overall.
I keep those annoying popups on for Internet Explorer, and you're right. It's amazing how few developers ever bother testing their code in IE. As a web developer, it's sorta your duty, right? Seeing as how it still accounts for like 60% of traffic to most sites.
Anyway, in answer to your question, I simply switched to Chrome for everyday browsing, and only use IE for testing and developing.
You have two options.
Change and use a browser that allows you to have site specific configuration (check out Firefox with Firebug), or
Use different browsers for developing and everyday use.
CompanionJS doesn't let you toggle debugging on a domain basis, but makes the error messages less obtrusive for casual surfing, and makes script debugging in general more user friendly.
Chrome doesnt bug you unless you first open the javascript debugger window
If you want to test and debug JavaScript, Firefox and Firebug are unrivalled in terms of features and ease of use. Chrome is not as powerful as Firebug, no matter what anyone else tells you.