我如何“安装”代理服务器上的特定网络文件?
这是针对内部系统的,需要以这种方式设置。
我需要特定的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,我认为你可以,例如,使用 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.