News for hackers. Stuff that matters.
Re:Java.sun.com is down again - breaking bad apps across the... by MBCook on Saturday April 28, 2012 @10:29PM (#3904889)
At the least, the program could use a singleton to fetch and cache the DTDs. To just pull it over the internet every time you need it is, ignoring the practical problems, just flat out wasteful.
Re:Java.sun.com is down again - breaking bad apps across the... by sixcorners on Saturday April 28, 2012 @11:08PM (#3904955)
Does the DTD have the right headers set to allow clients to cache it?
Re:Java.sun.com is down again - breaking bad apps across the... by zorlem on Sunday April 29, 2012 @05:11AM (#3905564)
I'm not sure the situation with java.sun.com, but those provided by w3c do have a 90 days expiration (according to one of the links I've posted).

In all cases, since the DTDs are more or less versioned through their filenames, with quite a minimal rate of changes, caching them (even if not outright saving them forever) should be the default action.