ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47846] New: <get> unexpectedly obtains cached versions of web pages
Date Tue, 15 Sep 2009 21:45:48 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47846

           Summary: <get> unexpectedly obtains cached versions of web
                    pages
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: ryan.schmitt@boeing.com


org.apache.tools.ant.taskdefs.Get obtains a URLConnection from the source URL.
The URLConnection class can use a cache, and apparently does so by default.
When I was repeatedly running a script that had to have the most up-to-date
version of a web page, this caused a problem that was difficult to track down.
Get should either expose URLConnection's caching options to the user, or should
always disable the use of caches as follows:

connection.setUseCaches(false);

Since this caching behavior is not documented anywhere, this latter option
might be preferable.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message