![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,793
|
Fuck browser caching
I despise browser caching. Trying to debug a program but stupid browser and or stupid server is still throwing errors because the js file its using is an old, cached one.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Anti Communist
Industry Role:
Join Date: Nov 2003
Location: Null
Posts: 29,857
|
I feel your pain
__________________
My mother said, to get things done You'd better not mess with Major Tom |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Fabulous
Industry Role:
Join Date: Apr 2003
Location: Indiana
Posts: 11,374
|
can't you just clear your cache or am I missing something?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Feb 2015
Location: Amsterdam
Posts: 210
|
Or add something like file.js?version=2 this way you can be 100% sure you and your users grab a fresh copy.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2009
Posts: 819
|
In Chrome, open developer tools, go to Network tab, check 'disable cache', refresh page.
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,382
|
Shift+F5
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,793
|
No this time its different. This is the clients server that is caching, and the file its caching is a .js file. What's extra frustrating about this is that it took forever to realize it.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Aug 2015
Posts: 1,017
|
do you have access to the server? I would just add a version number to the filename. Hopefully they coded their site so that the filename doesn't have to be changed in every single template
but who the fuck is caching javascript server-side? I struggle to imagine a situation where that would ever make sense |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
♦ Web Developer ♦
Industry Role:
Join Date: May 2005
Location: Full-Stack Developer
Posts: 12,470
|
Most likely it's a load-balanced server, try getting the direct IP into your hosts file to debug quicker
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Aug 2015
Posts: 1,017
|
Quote:
it's part of why I'm in the habit of bumping the filename every time I update static resources, I just code my sites so there's only one file that references the actual resource URL and every other template includes the "common includes" template or whatever there's a saying that there's only 2 hard problems in computer science: naming and cache invalidation. I mostly name my variables things like "fuck_you" and "your_mom_is_a_whore" so I'm not particularly opinionated as to the difficulty of naming things but when it comes to cache invalidation god DAMN I run into some tough issues |
|
![]() |
![]() ![]() ![]() ![]() ![]() |