HandyCache форум

Главная категория => English forum => Тема начата: pankaj17939 от 07 ноября 2012, 09:34:34



Название: Cache all files from selected domain.
Отправлено: pankaj17939 от 07 ноября 2012, 09:34:34
I am using ProxHTTPSProxy.exe to cache https to http data from google
Some url are not getting cached as their is no image extension in the file name

http://lh3.googleusercontent.com/-eT3Be4eRD30/T7gSlrAFcRE/AAAAAAAAACU/gRbAKoeHuHw/s0-d/ScrapbookPhotos
http://lh4.googleusercontent.com/-6OZLHdwBXPA/UJnC56Mb69I/AAAAAAAAtGM/Y1chDvaPigY/w497-h373/12%2B-%2B1
http://lh5.googleusercontent.com/-zqCl8JH6eHs/UJnpSUqy6HI/AAAAAAAANsI/0mRhpn5Fde4/w497-h373/2012-11-06
http://lh6.googleusercontent.com/-6K8XBFLQqvU/UJk9ivCF5KE/AAAAAAAAJbI/va34SjJDLl0/s0-d/2012110604

A ) Can we cache all files from particular domain
B ) can lua file will able to cache such url which have improper file name for image data


Название: Re: Cache all files from selected domain.
Отправлено: mai62 от 07 ноября 2012, 10:43:31
Try set options Cache/Control/Ignore no-cache and Ignore no-store.


Название: Re: Cache all files from selected domain.
Отправлено: pankaj17939 от 07 ноября 2012, 11:39:43
Other images are getting cached (image extension jpg png gif )
both the option are set still on
Looking for the way to cache files which have no extension


Название: Re: Cache all files from selected domain.
Отправлено: reges007 от 07 ноября 2012, 12:24:52
Other images are getting cached (image extension jpg png gif )
both the option are set still on
Looking for the way to cache files which have no extension


just using rules save to chace  .*
#4#~#True#~#.*#~##~#

or specific host
#4#~#True#~#googleusercontent.com#~##~#



Название: Re: Cache all files from selected domain.
Отправлено: DenZzz от 08 ноября 2012, 00:13:33
B ) can lua file will able to cache such url which have improper file name for image data

You can write an extension to cache images by the Content-Type field in the response headers received from the servers.
See  eA_Dont_update_image_by_type.lua  for example.


Название: Re: Cache all files from selected domain.
Отправлено: pankaj17939 от 08 ноября 2012, 13:14:42
Thanks reges007
Thanks DenZzz I am not versatile with Lua language if ready-made script is available, then that is OK