Delays in recognizing updated files on GoDaddy shared hosting?
Hi all, sorry if this issue has been discussed before -- and if so, please point me to the relevant thread.
I'm a web developer with client websites on all sorts of different hosting platforms. For the past year, since around June 2013, there's been an issue specific to GoDaddy shared hosting.
Normally, when I FTP upload an updated file of any kind (PHP, image, CSS, JS) all I have to do on my web browser is Shift-reload to see the updated file. But on GoDaddy sites, it's not always immediate. It can take anywhere from 5 - 30 seconds to see the update, no matter how many times I Shift-reload, or even open up a different browser. I even set the webpage template to add a querystring timestamp to each .js or .css reference so it's a unique call each time, but it doesn't help.
No other hosting service that I currently use has this issue -- it's only GoDaddy. The only other time I experienced this was several years ago, with a client who used Rackspace. At the time, I (probably incorrectly) attributed it to the quirks of cloud hosting.
The delay may not seem like a big deal, but when making hundreds of little updates a day it eats up time, especially when I can't tell if a broken script is still broken because my update didn't fix it, or because the site is still loading the previous version.
I've searched all over for information on this, but come up empty every time. Is it just me, maybe something on my computer or local network that causes the delays? Any insight would be greatly appreciated.
Posted May 15, 2014, 6:17 PM UTC
It could also be a CDN issue?
Are they setup with something like Cloudflare or a NGNIX proxy? Check the headers on some of the images/css and see if there is any type of server side caching enabled?
Hmm... GoDaddy introduced their own CDN "Website Accelerator" in early 2013, which is just before I started noticing this, and they began offering it to their Deluxe/Ultimate hosting plans, which are the ones that have been giving me trouble: https://domainnamewire.com/2013/01/25/go-daddy-finally-offers-a-cdn-but-its-limited-right-now/
However, I checked one of the affected accounts, and Website Accelerator is not enabled.
Here's the header for one of the css files:
[deleted]
Is Cache-Control set on the server in this case? I'm familiar with changing cache settings in PHP and HTML, but not for CSS or images. And I thought this only affects the client's cache, rather than the server.
I've been using something similar to your method, which spits out a comment line with the file's date/time. This is so I can more quickly check if I'm seeing the newest version, rather than skimming through the page source to find the update (or lack of).
I would put my money on the "Website Accelerator" being the issue.
Odd though that the server is apache - though that would explain why php files are also not updating (where a NGNIX setup might be a hell of a lot faster but it would ignore php files and just cache static files).
You should be able to flush the server side cache using these instructions but it also has a developer mode which should sort you out long term. Just whack that on when you want to do an editing session.
THANK YOU! I think developer mode is exactly what I was looking for.