Results 1 to 2 of 2

Thread: WIMP on Localhost - Annoying..caching?

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    WIMP on Localhost - Annoying..caching?

    I posted about this in the asp.net section, as I figured it's a IIS problem. But I spoke too fast when claiming I solved it.

    Swapped Apache with IIS, and got it working.

    Just seems when I edit my PHP code (local wordpress theme), I have to refresh / hard refresh several times before the change show up.
    Weird thing, it's PHP output that seems to get "cached".

    Dunno anything about this, so any help would be appreciated
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: WIMP on Localhost - Annoying..caching?

    most likely, it's your browser. this is an issue I've had while using Firefox in the past. you can add a no-cache header and that may solve your problem:

    PHP Code:
    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
    header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width