Flutter web变更源文件但caddy代理仍为变更前的flutter web

我使用caddy代理一个flutter web,然后我重新构建的这个flutter web,替换了曾经的文件,但访问域名仍为重新构建前的flutter web,这太奇怪了,然后我使用python -m http.server代理这个网站,访问端口,是重新构建之后flutter web
caddy和python代理的甚至是一个文件夹,但caddy的域名就是重新构建之前的,而python就是重新构建之后的,这太奇怪了
重新构建之前的flutter web已经被我删除了,但caddy代理的仍然为重新构建之前的,我合理怀疑是缓存方面的问题

以下是我的Caddyfile

luminous-dev.icu {
handle_path /home {
root * /root/web
file_server
}
handle /* {
reverse_proxy localhost:6185
}
}

Clear your browser’s cache or try in the incognito mode. Caddy has no reason to cache the old content unless you tell it to.

Flutter web uses service workers, which are known to incur aggressive cache by the browser, not by Caddy.

我认同你说的如果不是我亲眼所见,我甚至使用python http.server之后使用caddy反向代理8000端口访问域名路径都是重新构建之前的,但是直接访问域名:8000就是重新构建之后的,我也觉得这太奇怪,但它确实发生了

但我已经尝试清除缓存和隐私模式浏览了,甚至我还用另一台linux系统的电脑访问,但结果都是一样,是真的很奇怪,我已经手足无措了。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.