Forum Replies Created

Viewing 2 replies - 481 through 482 (of 482 total)
  • Thread Starter m.tiggelaar

    (@mtiggelaar)

    .. well i’m happely talking to my self but:
    if-modified-since works flawless with W3TC plugin loaded.

    Still leaves the question why the canonical script is bugged in the latest WP tho.

    Hopefuly some guy with PHP knowledge can find the answer to that (i’m just a server tech, not a dev ;-)).

    Regards,
    Marco

    Thread Starter m.tiggelaar

    (@mtiggelaar)

    Righty,

    in wp-includes/canonical.php

    if ( $do_redirect ) {
    		// protect against chained redirects
    		if ( !redirect_canonical($redirect_url, false) ) {
    			wp_redirect($redirect_url, 301);
    			exit();
    		} else {
    			// Debug
    			// die("1: $redirect_url<br />2: " . redirect_canonical( $redirect_url, false ) );
    			return false;
    		}
    	} else {
    		return $redirect_url;
    	}

    If i comment this out i get the status:
    Server Response HTTP/1.1 200 OK

    However still no if-modified-since.

    I also think that script is usefull (if it actually works rather then pernamently redirecting EVERY page incl the good ones).

    so guessing the whole clue would be “why isn’t that script doing it’s normal job” ?

    I still have to digg a bit deeper for if-modified-since tho.. not quite sure why WP doesn’t got this build in.

    Regards,
    Marco

Viewing 2 replies - 481 through 482 (of 482 total)