How to force Chrome NOT to cache redirects?

前端 未结 2 782
刺人心
刺人心 2020-12-18 03:23

A simple HTML code:


image.php is a script that returns a random Redirect to a static image wi

2条回答
  •  忘掉有多难
    2020-12-18 03:35

    Try a 307 redirect

    But if you're stuck trying to get to a link that won't work due to a cached redirect...

    This doesn't clear the cache but it's one quick and possible route around it if you're pulling your hair out trying to get to a link that has been redirect cached.

    Copy the link address into the address bar and add some GET information to the address.

    EXAMPLE If your site is http://example.com

    Put a ?x=y at the end of it 
    ( example.com?x=y ) - the x and y could be anything you want.
    

    If there is already a ? in the url with some info after it

    ( example.com?this=that&true=t ) - try to add &x=y to the end of it...
    
    ( example.com?this=that&true=t&x=y )
    

提交回复
热议问题