我如何“安装”代理服务器上的特定网络文件?

发布于 2024-10-06 18:52:43 字数 335 浏览 0 评论 0原文

这是针对内部系统的,需要以这种方式设置。

我需要特定的 Web 文件,例如,所有图像都手动预安装在代理服务器上,并且从不从 Web 服务器下载。

当浏览器请求页面时,从 Web 服务器发送到代理的唯一内容应该是纯 html 页面。

然后,我希望每次都从代理中获取 html 页面使用的图像,以便完整呈现到浏览器。

这个设置有名字吗?我已经了解了缓存,但我什至不希望图像被下载一次。另外,html页面如何知道使用来自代理的图像?

我该如何设置这样的东西?我还没有设置代理服务器,所以我不知道我将使用什么平台,但感谢建议。

谢谢。

This is for a in house system, that is required to be set-up this way.

I need specific web files, for example, all images to be manually pre-installed on a proxy server and never downloaded from the web server.

When the browser request the page, the only thing sent from the web server to the proxy should be the plain html page.

I would then like the images the html page uses, to be grabbed from the the proxy every time, for the complete render to the browser.

Is there a name for this set up? I have seen about caching but I do not even want the images downladed once. In addition, how would the html page know to use the images from the proxy?

How would I set up such a thing? I do not have a proxy server set-up yet so I do not know what platform I will be using, but suggestions are appreciated.

Thank You.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清欢 2024-10-13 18:52:43

嗯,我认为你可以,例如,使用 Privoxy 并告诉它将一些图像查询重定向到本地服务器,甚至让它使用正则表达式替换内联的 img src=" 属性。

Well, I think that you could, for example, use Privoxy and tell it to redirect some queries for images to a local server or even let it replace the img src=" attribute inline using regexes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文