506

The Web developer's equivalent to, "have you turn it off and on again":

"Try clearing the cache"

Comments
  • 4
    This is where cachebusting comes in handy!
  • 2
    Technically to be more similiar to a power off it should be
    "have you tried to close your browser and open it again"
  • 5
    @shelladdicted that won't clear the cache though, will it?
  • 0
    @Hedgepig of couse, but close and open are more similiar to turn off and turn on.
  • 2
    @shelladdicted I guess, though I was more making a point about the mantra pertaining to the solution of what seems like 90% of the problems we face as web developers.
  • 1
    Restarting the browser will probably not solve the problem ;)
  • 4
    @Hedgepig i know, that is why i used "technically" ;-)

    Anyway i think the other 10% is caused by chrome and IE/Edge.
    ;-)
  • 1
    @Hedgepig in my case it will i always set to clean everything on close.
  • 0
    @shelladdicted yeah we're splitting hairs really aren't we.

    No doubt! I use Linux haven't event tested my app in IE/Edge, I'm in for a shitstorm
  • 0
    @Hedgepig the problem is not where YOU (as dev) test your work.

    But where the CLIENT use your product.
  • 1
    CTRL + SHIFT + F5 if you wanna feel CTRL + SHIFT + F-FIIINE...
  • 1
    Or incognito mode
  • 0
    This is the same with Java but clearing the build cache 😂
  • 0
    Incognito, FTW! Although I do forget...
  • 0
    For app developer it will be delete the app from taskmanager xD
  • 0
    I haven't built it for that browser (IE)
  • 1
    Ctrl +Shift + R
  • 0
    Kill your artisan serve and try again! Oddly this works a fair amount of the time
  • 0
    Try a different browser
  • 1
    I mentioned cachebusting above
    For those that don't know, this involves "versioning" for JS/CSS files

    For development, I set the version number to the Unix timestamp
    E.G. style.css?v=XXX

    There's also an option in Chrome developer tools called "Disable cache while developer tools is open". A fantastic feature!
  • 0
    @itsdaniel0 I'm guessing meteor (and other frameworks will do this automatically. I have never had an issue with the cache

    Ironically enough
  • 0
    @Hedgepig I've no idea 😂
    I always have that checkbox ticked
  • 1
    To avoid being caught by this, I installed Canary next to stable Chrome and made it so it only opens incognito and obliterates everything when it shuts down.. Just to be safe.
Add Comment