I know java.nio.file package provides a file change notification API (Watch Service API).
I need similar kind of service for getting notifications anytime a website is changed. Besides polling or some api built on top of polling, is there a library/API available? If no, how can I do better than periodic polling (or alternative)? If I am forced to do polling (because there are no alternatives), is there some tag in http/html message that tells me when the website was last modified so that i can detect the change without parsing entire website content and comparing with last read for detecting modification changes