aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: 'download-only-if-newer' not on compressed?  (Read 3954 times)

gav616

  • Guest
'download-only-if-newer' not on compressed?
« on: October 27, 2010, 01:40:33 PM »

Sorry if this is just common knowledge and nothing can be done.

but, why is it that 'uncompressed' filters use the feature effectively and are not constantly downloaded, but on the same URL some 'compressed' file are downloaded regardless if there new or not.

E.G.

http://update.transmissionbt.com/level1
Quote
2010-10-27 12:18:45: Successfully updated ipfilter.dat
2010-10-27 12:18:45: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2010-10-27 12:18:45: Loaded 224876 IP-ranges from '/home/gav/.aMule/ipfilter.dat'.
2010-10-27 12:18:46: Loaded 0 IP-ranges from '/home/gav/.aMule/ipfilter_static.dat'.
2010-10-27 12:18:46: IP filter is ready
2010-10-27 12:18:58: Skipped download of ipfilter.dat, because requested file is not newer.

http://update.transmissionbt.com/level1.gz
Quote
2010-10-27 12:18:45: Successfully updated ipfilter.dat
2010-10-27 12:18:45: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2010-10-27 12:18:45: Loaded 224876 IP-ranges from '/home/gav/.aMule/ipfilter.dat'.
2010-10-27 12:18:46: Loaded 0 IP-ranges from '/home/gav/.aMule/ipfilter_static.dat'.
2010-10-27 12:18:46: IP filter is ready
2010-10-27 12:18:58: Skipped download of ipfilter.dat, because requested file is not newer.
2010-10-27 12:26:59: Successfully updated ipfilter.dat
2010-10-27 12:26:59: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2010-10-27 12:27:00: Loaded 224876 IP-ranges from '/home/gav/.aMule/ipfilter.dat'.
2010-10-27 12:27:00: Loaded 0 IP-ranges from '/home/gav/.aMule/ipfilter_static.dat'.
2010-10-27 12:27:00: IP filter is ready
2010-10-27 12:27:37: Successfully updated ipfilter.dat
2010-10-27 12:27:37: Loading IP filters 'ipfilter.dat' and 'ipfilter_static.dat'.
2010-10-27 12:27:38: Loaded 224876 IP-ranges from '/home/gav/.aMule/ipfilter.dat'.
2010-10-27 12:27:38: Loaded 0 IP-ranges from '/home/gav/.aMule/ipfilter_static.dat'.
2010-10-27 12:27:38: IP filter is ready

And BTW It's not updating it because there's a new version, notice the time in the logs.
« Last Edit: October 27, 2010, 01:42:41 PM by gav616 »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: 'download-only-if-newer' not on compressed?
« Reply #1 on: October 27, 2010, 08:17:50 PM »

Please check the timestamp of the unpacked file. Then touch it and see if the download is skipped then.
I believe we need to touch the unpacked file to make this work.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

gav616

  • Guest
Re: 'download-only-if-newer' not on compressed?
« Reply #2 on: October 27, 2010, 09:06:02 PM »

Please check the timestamp of the unpacked file. Then touch it and see if the download is skipped then.
I believe we need to touch the unpacked file to make this work.

I believe so, but I checked both files with  the 'eMule' mod 'MorphXT' and it seems it handles both files in the same way (sorry, I don't know exactly now, but the source is there)
Logged

gav616

  • Guest
Re: 'download-only-if-newer' not on compressed?
« Reply #3 on: October 28, 2010, 06:22:13 PM »

http://list.iblocklist.com/?list=bt_level1

the skip works fine and it's compressed. hmmm.

certain links must just not work with this feature.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: 'download-only-if-newer' not on compressed?
« Reply #4 on: October 28, 2010, 11:52:44 PM »

Skipping is just possible if the server tells you the timestamp. Some do, some don't and some always report current time.
Logged
Homefucking is killing prostitution

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: 'download-only-if-newer' not on compressed?
« Reply #5 on: October 29, 2010, 01:04:04 AM »

If-modified-since only works when the server supports it, of course.
Logged