Browser always keeps cache - macos

I'm working on a project for school, and have run into a problem.
My browser takes a very long time to re-read the files on the localhost server.
I'm on a mac using Google Chrome, but have seen the same problem with Safari and Firefox.
Using cmd+shift+r does not work, and even dumping the cache through the browser does nothing. All I seem to be able to do is wait untill it's fetched the latest files.
My project is built in Kohana 3.3.1, in case that might be relevant.

Related

Can't Clear or Stop File Caching while Building Site

Working on a site, using Chrome Incognito to review my changes, but files are still being cached and I can't review what I've done. Incognito isn't supposed to cache files. I just had a session with my hosting server to be sure nothing is being cached there, and it's not. To be certain, I deleted the file I'm working on from the server, then logged into a remote computer where I tried accessing the file and got a 404 error, so I know it's not cached on the server. I then completely shut down Chrome in this computer, restarted, opened an Incognito Window, went to the URL, and the file is still showing in a state before I made the most recent changes I'm trying to verify. I've repeatedly cleared the Chrome cache, but that doesn't effect Incognito. How do I clear whatever is caching these files in my system? Or maybe a better question would be, how are developers avoiding cache issues when building?

Website files not updating

I have a seemingly simple issue, but it's been driving me insane for the past few hours. My website does not update any made changes on any of my files, until about 30 minutes later.
I've tried both Safari and Chrome, cleared their history and caches, refreshed the page, and yet it loads the old files. In my ftp client (I'm using Filezilla) everything appears to be in order too: Directory listing gets logged as successful, and correctly shows the new file and date of modification. When I checked back about half an hour later, everything seemed to have updated everything perfectly... File permissions are ok, Firewall is ok, Connection speed is reasonable...
I have no idea what the problem is. The only thing that I can think of is that I'm currently in another country, so far away from my server, yet I've updated my sites before without any problems. Does anyone know of this issue?
Thanks in advance!

asp.net core appears to freeze when debugging application

Has anyone seen the issue when debugging an Asp.Net 5 (core) application where the application seems to just go to sleep. Selecting another function/page in the browser just says "Waiting for LocalHost" (as I am running it locally on IIS Express).
We have a staged version of the Asp.Net app and it has no such problem. It runs wonderfully, but in Debug mode, it can have serious delay issues in executing code. Nothing is reported in the output window, during the time it appears to be doing nothing. Nothing on the Diagnostic tools windows either
A lot of the time - it will ultimately come back if you let it do its thing. But sometimes it can take up to 15-30 seconds.
The issue seems to become more prevalent when you change the Razor or javascript client files while the app is running?
Soemtimes pressing F5 on the web page makes it get out of its sleep mode (but not always, and it seems the more times you do this it, the slower it gets). Is it perhaps rebuilding the page that changed? but why the delay?
Again this works fine in Staging or Production (as none of the back end client side files would be changing). But it can be very annoying
Any ideas?
For me it was my Anti Virus. As soon as I disable AVG all requests get immediately run by the debugger.
So I found I didn't have the web tool extensions even installed - and after I installed it - the Freeze disappeared, but a colleague of mine still has the problem (as he already had the extension loaded and there is no way to uninstall it once its loaded

Joomla content not displaying on other computers

I've build a Joomla website and it has been online for like 2 years now, always worked fine.
Recently I added a Google maps plugin and changed some header images.
Strange thing is, those changes are only displaying on my own laptop. The problem is not that I'm by accident viewing a local website, I'm 100% visiting the website online. I just opened the website on chrome with www.mywebsite.com and it displays all changes made in the backend. When I log out and back in again to the backend trough /administrator I can see the changes.
Now when I open the website on another computer (tried like three different ones), the changes are not displaying. Even when I log in to the backend through /administrator, still online on the same network, I am not seeing the changes made on my laptop and vice versa.
Frontend sometimes can have problems with caching, but the cache is disabled so this can't be the problem. And even if so, why would the backend display other data on 2 different computers..?
Also I've already tried removing the browser cache on those other computers.
Has anyone experienced this problem? I'm guessing it might be a problem on the side of my hosting company..
It had to do with a rule in the hosts-file on my laptop which directed to an old location/ip-adress of the website which has been moved to another server.

How to force cache to be reused after app restart - GeckoFX / xulRunner

I'm new to embedded browsers, I admit, but I've got a GeckoFX v33 control working and hosted in a WPF application. Browsing and caching is working during a browsing session. However, upon application restart the cache is lost (or ignored) and all web assets are re-downloaded!
I'm quite dumbfounded why this isn't enabled by default, as it is a web browser control after all.
I've tried setting a custom profile path to an existing directory with write access:
var path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "xulrunner");
Gecko.Xpcom.ProfileDirectory = System.IO.Path.Combine( Directory.GetCurrentDirectory(), "webcache");
Gecko.Xpcom.Initialize(path);
I've also tried setting various combinations of preferences i.e.
Gecko.GeckoPreferences.User.SetBoolPref("browser.cache.disk.enable",true);
Gecko.GeckoPreferences.User.SetIntPref("Browser.cache.disk.capacity", 50000);
However, it ALWAYS loads the web assets again on app restart!
Does anyone know the correct configuration to get geckoFX or xulRunner to look at the last cache on startup?
Thanks in advance!
OK, so I have narrowed down this bug to the geckofx-33.0 version.
Downgrading to geckofx-31.0-01 or lower fixed my problem and the cache is persisted (in the /cache2 folder, created automatically).
I tested the following combinations (OS: Windows):
GeckoFx 29.0-015.zip with xulRunner 29.0.1.en-US.win32.zip: Disk caching WORKS!
GeckoFx 31.0-01.zip with xulRunner 31.0.en-US.win32.zip: Disk caching WORKS!
GeckoFx 33.0-02.zip with xulRunner 33.0.2.en-US.win32.zip: Disk caching FAILS!
I was using the 33 version above (as it was the latest version!) and hence could not get disk caching to work. I definitely think this is a bug, as it is reproducible each time. I don't know if the bug lies in geckoFx or the xulRunner runtime, but I'll leave this up to the developers brains-trust to fix. I believe the cache API changed in v33.
So, for now I guess I'll just fallback to version 31 and wait for a fix.

Resources