- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Frist backend user.
Admin
If just disabling the browser caching fixes it then that almost certainly means it is a back-end issue of the application not sending the right cache control headers ( and/or poor api design)
Admin
Gah, that problem when even the boss knows an employee is a problem, but not quite enough of a problem to be worth going through the process of firing them, hiring someone new and training the new person up.
Admin
Eric is a huge back end - for a front end guy.
Admin
Good to see some new blood on remyporter.com
Admin
As The Mole says, TRWTF is that the evidence described here points unambiguously to this being a backend issue: responses from URLs that serve user-specific content being cached, due to inappropriate caching-related HTTP headers.
Admin
For that unique identifiers are placed in the URL to bypass the local browser cache.
Admin
Hey, I think I spotted today's WTF.
Admin
You don't know that. Maybe the front-end guy caches everything in localStorage using JavaScript , there's nothing the backend people can do about it.
Admin
Do you mean to you, anything server-side is back-end? Cache-control headers are managed by the web-facing code, not the data manipulation code. That's front-end in my book.
Admin
Er, what?
Admin
@Cabbage - not at all. Why would a back-end send HTTP headers? Where I currently work, the back-end communicates over TCP/IP directly. It's up to the front-end guys to set their headers.
Admin
Your book is wrong. The question you pose in the first sentence should be answered affirmatively.
Admin
Everything from the screen on inwards is back end. The front end starts where the screen stops and the chair begins.
Admin
I was expecting him to be fired, boooo
Admin
Here we have a classic case of the Dunning-Kruger effect.
Admin
Thanks for explaining that Eric.
Admin
My first thought too! Even a stopped clock is right twice a day...
Admin
I thought it was having 10000 lines of code refer to the same variable...
Admin
Disabling the browser cache (or even restarting the browser) wouldn't help if that were the case. In fact it's hard to think of any way it which it might be the front end developer's fault based on what was described. And as a back end dev I'm always happy to blame the front end if something's not working (like yesterday when I found it was trying to POST to my GET-only endpoint, clearly described as such in the doco)
Admin
Disabling the browser cache (or even restarting the browser) wouldn't help if that were the case. In fact it's hard to think of any way it which it might be the front end developer's fault based on what was described. And as a back end dev I'm always happy to blame the front end if something's not working (like yesterday when I found it was trying to POST to my GET-only endpoint, clearly described as such in the doco)
Admin
I've been reading TheDailyWTF for years, and this article was one of the hardest to actually read. It's in dire need of an editor.
Admin
Not necessarily, I have the issue all the time at work with Internet Explorer when it comes to AJAX. IE caches AJAX GET requests, when it sees a new AJAX GET request, it checks its cache, and if it sees a request already in there that is the same as the new one, it just pulls it from cache.
To get around that, I do as others undoubtedly do, which is append a random number (I use the current timestamp in milliseconds) to the URL, that forces IE to ignore the cache and fetch new from the server.
So far, IE (and its derivs, I have detected this problem in IE, Edge, and C# HttpClient) is the only browser to have this issue, Chrome, FF, Opera, Safari, etc... all just go back to the server and never look at cache.
Admin
But there was nothing about the server sending the wrong cache control headers. The front-end guy was just unilaterally caching everything "because the back end is so slow". Knowing how he was managing to do that in the first place I think would be crucial to understanding whose problem it was.
Admin
Well, Eric should definitely be the back end of jokes.
Admin
Well, I think Eric is also a front end guy, especially the pipe part...
Admin
PEBKEC
Admin
All browsers do this. The trick of adding ?_dc={timestamp in ms} to url's is customary if you absolutely need to have the latest, uncached version.
Admin
"The front end starts where the screen stops and the chair begins."
That's usually the bell end.
Admin
Developers arguing over front vs backend often forget there's a sysadmin piece or two in the middle.
Admin
What's your point?
Admin
Nice.
Admin
Is the browser showing cached data? If you were still logged in as a superuser, would you have to refresh the cache to get the current information?
Admin
TRWTF is that they're not all "full-stack" developers.
Admin
QFT. If the issue has to do with caching headers sent by the webserver, then that's not development at all, it's server configuration.
Admin
No, NoName, that is not how you handle cache control. That's how front-end devs that don't know how to do cache control handle cache control. Use cache control headers, or E-tags, don't add dummy data to the URL to force bypassing the cache.
Admin
Thanks for doing this detailed tutorial! I hope by the time I will need it, This is a very inspiring post! From my point of view, information expressed in your writing style is superb … Great job!!
Admin
You have written a amazing post. The info provided is just awesome. And the tips which you have shared are really great. By following these tips we can build blogging community easily. Thank you so much.
Admin
Huh. Eric sounds like the sysadmins at my old job. For them, everything was a developers problem. Even if the problem was within an application the admins bought from an external company. If something was wrong they'd say "Well, this is a program, right? And developers program. So it's their job to fix it".