php创建一个https 301域名跳转,并且禁止浏览器缓存的办法,mt_rand生成随机数
php创建一个https 301域名跳转,并且禁止浏览器缓存的办法,mt_rand生成随机数<?php
$url="https://img.alicdn.com/generate_204?".mt_rand();
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: $url" );
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Connection: keep-alive");
?>
mt_rand的性能看起来更高
页:
[1]