Локальное кэширование http прокси для предотвращения реальных запросов на сайт

832
rsk82

Я пишу расширение для Chrome, и мне нужно проверить его производительность. Но, делая несколько запросов к другим сайтам, я думаю, вы попадете в черный список как подозреваемый в проведении DoS-атаки. Поэтому мне нужен локальный прокси-сервер, который один раз получит данный веб-сайт, а затем получит его только из локального хранилища и даже не будет пытаться сравнить то, что находится в локальной сети, с тем, что находится в сети.

0

2 ответа на вопрос

1
slotishtype

Is Squid an option? There is a windows version if I recall. Actually, check out this other Super user post.

1
Mucker

Why don't you just create a website locally anyway and use Chrome to connect to this instead?

I say this because that is what you are effectively doing anyway if you use a proxy to cache a website. It is no longer going out on the internet so you can't test the performance of the line this way (if needed). Instead the web page is served from the cache (which is local). So why not just create a local website to achieve this?