CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: How to clear a mobile device cache quickly when testing html output  (Read 209 times)

durangod

  • Sr. Member
  • ****
  • Posts: 364
  • Karma: +5/-0
  • Weebles Wobble - but they dont fall down!
Hi,

I use my cell phone for testing the final html output after doing the desktop and mobile views.  One problem is that it takes so much time to refresh the mobile device browser cache so i know i have a fresh copy every time.

I think there is a html head code to load a new server version of the html every time, something like this:
Code: [Select]
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
 

Other than that.  What is the fastest way to reset the browser cache on a mobile device like a smart phone.

Currently i do one of two ways:

1. use the browser settings option to clear the cache
2. run cCleaner for mobile

Both take time and when your testing again and again, its a huge pain to go through that each time.  Is there a fast alternative?

I am thinking not and i am thinking the fastest way is to use the html head code to load a fresh copy every time.   
« Last Edit: 11 Jan 2024, 01:50:59 am by durangod »

GrumpyYoungMan

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +8/-0
    • Grumpy Young Man
Use the browser private/privacy mode, and start a new session everytime?
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

durangod

  • Sr. Member
  • ****
  • Posts: 364
  • Karma: +5/-0
  • Weebles Wobble - but they dont fall down!
Use the browser private/privacy mode, and start a new session everytime?

I guess that means for firefox a private window, but chrome i have no idea how, i will google it. 

Thanks :)

coothead

  • Sr. Member
  • ****
  • Posts: 380
  • Karma: +89/-0
  • I smile benignly
    • coothead's stuff ~ an eclectic collection
I guess that means for firefox a private window,
but chrome I have no idea how, I will google it. 

Chrome has "New incognito window'.

coothead
~ the original bald headed old fart ~

 

SMF spam blocked by CleanTalk

Advertisement