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: [email protected]
        ReportedBy: [email protected]


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.

Reply via email to