注入到对应的head插入js脚本和css 的玩法相比大家应该都知道,这里就不提了,为了让它不随便缓存给它过滤下时间为年月 默认$time_iso8601是完整时间
map $time_iso8601 $year_month {
"~^(?<year>\d{4})-(?<month>\d{2})" "$year$month";
}
sub_filter '</head>' ' <link rel="stylesheet" href="xcss/style.css"><script src="script.js?time=$year_month"></script> </head>';












网友评论