+  HandyCache форум
|-+  Главная категория» Дополнения, плагины» Google's Data Compression Proxy
Имя пользователя:
Пароль:
Страниц: [1]   Вниз
  Отправить эту тему    Печать  
Автор Тема: Google's Data Compression Proxy  (Прочитано 1022 раз)
0 Пользователей и 1 Гость смотрят эту тему.
coliv_aja
Пользователь
**

Репутация: +5/-0
Offline Offline

Сообщений: 77



« : 21 Июнь 2017, 14:59:18 »

Basic implementation of Google's Data Compression Proxy.
The proxy only accept HTTP connection, so only HTTP request will be forwarder to Google's proxy.

Using md5 module from https://github.com/kikito/md5.lua.
Just put the module in lua/md5.lua.


* Google_DCP.lua (0.96 Кб - загружено 13 раз.)
« Последнее редактирование: 21 Июнь 2017, 15:17:12 от coliv_aja » Сообщить модератору   Записан
coliv_aja
Пользователь
**

Репутация: +5/-0
Offline Offline

Сообщений: 77



« Ответ #1 : 21 Июнь 2017, 17:18:19 »

Fixed save to cache.


* Google_DCP.lua (1.23 Кб - загружено 12 раз.)
Сообщить модератору   Записан
LordMerlin
Старожил
****

Репутация: +11/-8
Offline Offline

Сообщений: 458


« Ответ #2 : 24 Июнь 2017, 12:39:27 »

Good afternoon. A small bugreport. Works only when an extension is added. After restarting the HC, the extension is turned on but it does not work, removing and installing the daw does not help, just the push of the reload button does not help. It only helps to remove the extension and re-add.
Добавлено: 24 Июнь 2017, 12:36:33

So with the expansion there were suspicions of the final page load. In the HC monitor, all connections are already closed, there are no pendants, and the browser still hanging the page load, hangs in 3-5 seconds. Without an extension, the same pages are loaded instantly.
Сообщить модератору   Записан
coliv_aja
Пользователь
**

Репутация: +5/-0
Offline Offline

Сообщений: 77



« Ответ #3 : 24 Июнь 2017, 21:38:43 »

I don't have a problem with extension load.
I do have a problem with page hanging tho. Not sure what happen.
Maybe there is some issue with HC and proxy keep-alive.
Try this.
Posted on: 25 June 2017, 05:29:57

Also try to change the proxy host. You can use the ip directly. Google have many server, try to nslookup with different dns server. Maybe you can find the faster one. Most of chrome mobile user enable the data saver. They can choke the server.

* Google_DCP.lua (1.29 Кб - загружено 10 раз.)
Сообщить модератору   Записан
coliv_aja
Пользователь
**

Репутация: +5/-0
Offline Offline

Сообщений: 77



« Ответ #4 : 17 Июль 2017, 14:30:15 »

I found out the hanging is caused by HC try to repeat the request on error. Usually it is when loading favicon. HC doesn't show this repeated request in connection list when using external proxy, but print it in log window.
Set the repeat request on error in "Loading control" to 0 seems to fix the issue.

* Google_DCP.lua (1.43 Кб - загружено 9 раз.)
« Последнее редактирование: 17 Июль 2017, 14:57:27 от coliv_aja » Сообщить модератору   Записан
coliv_aja
Пользователь
**

Репутация: +5/-0
Offline Offline

Сообщений: 77



« Ответ #5 : 01 Август 2017, 04:55:12 »

Updated to save webp to separated file.

* Google_DCP.lua (2.49 Кб - загружено 6 раз.)
Сообщить модератору   Записан
LordMerlin
Старожил
****

Репутация: +11/-8
Offline Offline

Сообщений: 458


« Ответ #6 : 01 Август 2017, 08:33:29 »

A great script, but is it possible to filter in the script itself for compressible content? I'll explain. Make sure that only content that is compressed by Google is sent to the server. I see on the monitor that the script is trying to send there the ZIP file that I'm trying to download, the servers are disconnected and everything, I have to disable either the extension or the proxy in the browser
Сообщить модератору   Записан
coliv_aja
Пользователь
**

Репутация: +5/-0
Offline Offline

Сообщений: 77



« Ответ #7 : 01 Август 2017, 15:14:25 »

Not only zip file, but also large file can't be forwarded. There is obviously some rules applied on chrome, some of them is .php. I don't really know about all this rules. Its also check the availability through check.googlezip.net/connect or within the same persistent connection which is http/2. Doing all of that check would make a latency problem.
I propose to only forward most common compressible content.

Код:
@rule \Ahttp://.+/.+\.(?:jpe?g|gif|png)
Сообщить модератору   Записан
Страниц: [1]   Вверх
  Отправить эту тему    Печать  

 
Перейти в: