IIS回收后首次访问慢问题

禁用时间间隔回收 设置为0

然后设置指定时间回收 0:00:00

然后设置脚本

@echo off
 
@echo  正在关掉所有的IE进程(需要设置默认浏览器是IE)
taskkill   /im iexplore.exe /f /t
 
@echo 正在访问 http://localhost
start "C:Program FilesInternet Exploreriexplore.exe"  http://localhost
 
@echo 正在通过ping来延迟80秒钟,以方便IE打开页面
ping 127.0.0.1 -n 80
 
@echo  正在关掉所有的IE进程(需要设置默认浏览器是IE)
taskkill /im iexplore.exe /f /t
 
@echo 正在访问 http://localhost
start "C:Program FilesInternet Exploreriexplore.exe"  http://localhost
 
@echo 正在通过ping来延迟80秒钟,以方便IE打开页面
ping 127.0.0.1 -n 80
 
@echo  正在关掉所有的IE进程(需要设置默认浏览器是IE)
taskkill /im iexplore.exe /f /t 

  设置计划任务 定期运行

原文地址:https://www.cnblogs.com/ahuo/p/5894691.html