This is a discussion on "Force refresh of browser" within the Web Page Design section. This forum, and the thread "Force refresh of browser are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Force refresh of browser
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Force refresh of browser
Do any of you know of a way to force refresh of the browser everytime a site is visited? I know there are java scripts but was not sure if that was best way to acheive this...
Sorry if this is the wrong forum for this post... |
|
|
|
||||
|
Re: Force refresh of browser
Why would you want to do such a thing?
|
|
|||
|
Re: Force refresh of browser
A client has requested this. She is planning on updating the site a lot. She wants to make sure the latest changes are seen each time a visitor visits her site. I told her it was unlikely that we could do this, but in fairness to her, I thought I'd research it a bit.
|
|
||||
|
Re: Force refresh of browser
What is she wanting to update? Text is never cached, but images and other external files are. If she has PHP, I believe you can do something like this to get linked files to reload every time:
|
|
|||
|
Re: Force refresh of browser
Well I appreciate the effort Ryan but I'm not versed in php at all and that just looks like mumbo jumbo to me.
This is a photography website so having people see the latest was important to her. After seeing that code, I'm going to tell her it "can't" be done... by me! |
|
||||
|
Re: Force refresh of browser
Haha, it's not difficult. Just stick ?<?php echo time(); ?> after the extension of a file. For example:
index.html to index.php and so on. |
|
|||
|
Re: Force refresh of browser
Oh I can do that!!!!!!! Yippeee...........................
|
|
|||
|
Re: Force refresh of browser
Will do!! Thanks ....
btw... made a gorgeous site this week and it's xhtml strict! wahoooo |
|
||||
|
Re: Force refresh of browser
Haha, congratulations
|
|
|||
|
Re: Force refresh of browser
I doubt it! hahahahaha If the client is happy and I'm happy, I don't want to mess with it!
|
|
||||
|
Re: Force refresh of browser
Well I can at least comment on the code. PM me if you'd like that but don't want the rest of the members picking your brain
|
|
|||
|
Re: Force refresh of browser
Aww Rian share the wealth man! Your no fun. I like picking at peoples brains because they pick at mine.
|
|
|||
|
Re: Force refresh of browser
hahahah Daygon... you're the one I'm most afraid of! hahahahahah
|
|
|||
|
Re: Force refresh of browser
|
![]() |
| Tags |
| browser, refresh |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to stop the browser refresh on clicking the webbrowser's refresh button ? | camarun20 | JavaScript Forum | 3 | Mar 18th, 2008 23:04 |
| Can I force IE to open img at actual size? | billysalisbury | PHP Forum | 11 | Oct 26th, 2007 16:16 |
| Error on Browser refresh | HallmanBilly | Flash & Multimedia Forum | 0 | Sep 9th, 2007 19:48 |
| How to force table cell widths | AdRock | Web Page Design | 1 | Sep 7th, 2006 14:54 |