Old 19-12-2006, 09:28   #1 (permalink)
saduikis
Registered User
 
saduikis's Avatar
 
Join Date: Dec 2006
Posts: 16
Problem with refreshing

Hello,

I have this little problem. I'm building an administration tool for my website and have to let's say move menu items up and down.

After programmicly I move them I do header("Location: ") to the same page as was before. Everything works fine except that sometimes I have to refresh page to see results (menu items switched).

In metatags I disabled caching like that:
HTML Code:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <meta http-equiv="Pragma" content="no-cache">
But that didn't help much.
Please help.
  Reply With Quote
Old 19-12-2006, 09:52   #2 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
If it is a caching issue add some kind of unique id on to the end of the location request:

http:url?unique=12314343452

Use timestamp or something that's guaranteed to change.

If that doesn't work, it'll more likely be a programming issue
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 19-12-2006, 10:52   #3 (permalink)
saduikis
Registered User
 
saduikis's Avatar
 
Join Date: Dec 2006
Posts: 16
Hey, thanks. Somehow I haven't think of it.
I'll try now..

Yes. It worked.

Thanks again!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8