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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-05-2018, 01:03 AM   #1
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
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.
__________________

Custom Software | Server Management | Integration and Technology Solutions
https://www.2much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 01:31 AM   #2
Major (Tom)
Anti Communist
 
Major (Tom)'s Avatar
 
Industry Role:
Join Date: Nov 2003
Location: Null
Posts: 29,857
Quote:
Originally Posted by 2MuchMark View Post
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.
I feel your pain
__________________
My mother said, to get things done
You'd better not mess with Major Tom
Major (Tom) is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 01:34 AM   #3
SBJ
So Fucking Fabulous
 
SBJ's Avatar
 
Industry Role:
Join Date: Apr 2003
Location: Indiana
Posts: 11,374
can't you just clear your cache or am I missing something?
SBJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 03:28 AM   #4
faperoni
Confirmed User
 
faperoni's Avatar
 
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.
__________________
Faperoni.com Fucker.com
faperoni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 03:55 AM   #5
awxm
Confirmed User
 
Industry Role:
Join Date: Aug 2009
Posts: 819
In Chrome, open developer tools, go to Network tab, check 'disable cache', refresh page.
__________________
.
awxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 05:29 AM   #6
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,382
Shift+F5
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 06:22 AM   #7
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by CyberSEO View Post
Shift+F5
Yep works every time
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 07:55 AM   #8
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
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.
__________________

Custom Software | Server Management | Integration and Technology Solutions
https://www.2much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 08:43 AM   #9
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by 2MuchMark View Post
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.
Well in that case, you are screwed Actually, you need to identify what method they use to store you as unique user and then change required part. For example, they could store based on your ip, or your user agent of browser.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 02:10 PM   #10
wankawonk
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
wankawonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2018, 11:13 PM   #11
Miguel T
♦ Web Developer ♦
 
Miguel T's Avatar
 
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
__________________

Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress
Miguel T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-06-2018, 01:06 AM   #12
wankawonk
Confirmed User
 
Industry Role:
Join Date: Aug 2015
Posts: 1,017
Quote:
Originally Posted by Miguel T View Post
Most likely it's a load-balanced server, try getting the direct IP into your hosts file to debug quicker
you're right, if the JS file is behind a load balancer or CDN it might be getting cached server-side (it's not a browser-caching issue, OP)

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
wankawonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
browser, stupid, caching, errors, file, cached, throwing, server, debug, despise, program, fuck



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.