Ignore:
Timestamp:
Feb 2, 2013, 12:41:38 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.99m:

  • Made the Depot query even more invulnerable against caches
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/depot/DepotManager.java

    r641 r662  
    99import java.io.UnsupportedEncodingException;
    1010import java.net.UnknownHostException;
     11import java.util.Date;
    1112import java.util.Enumeration;
    1213import java.util.HashMap;
     
    6465        /**
    6566         * Update local Depot information cache
    66          *
    67          * @param forceRefreshAll
    68          *            Force refreshing all data, even if it seems to be cached
    69          */
    70         public void updateInformation(boolean forceRefreshAll) {
     67         */
     68        public void updateInformation() {
    7169                try {
    7270                        java.io.File zipName = new java.io.File(Paths.getDownloadPath(),
    7371                                        "jsoncache.zip");
    7472                        FileDownloader fd = new FileDownloader(DepotConfig.getDepotUrl()
    75                                         + "jsoncache/jsoncache.zip", zipName);
     73                                        + "jsoncache/jsoncache.zip?ts="
     74                                        + (new Date().getTime() / 1000), zipName);
    7675                        fd.start();
    7776                        while (fd.getState() != net.oni2.aeinstaller.backend.network.FileDownloader.EState.FINISHED) {
     
    214213                return false;
    215214        }
    216        
     215
    217216        private TaxonomyVocabulary getVocabulary(String name) {
    218217                for (TaxonomyVocabulary v : taxonomyVocabulary.values()) {
Note: See TracChangeset for help on using the changeset viewer.