想知道一个网页的修改日期好判断是否更新
试过这段代码发现结果不对
URL url = new URL("http://news.sina.com.cn/c/2002-02-25/1923485328.html");
URLConnection conn = url.openConnection();
long headdate = conn.getIfModifiedSince();
System.out.println(new Date(headdate));
我想要这样的效果:
IE有个cache,发现网页没有更新过就不会再从网站取内容了
我自己也想要这样的效果,any idea??