* @return <code>true</code> if the resource data does need to be written,
* <code>false</code> otherwise.
*/
public boolean dataNeedsToBeWritten(Attributes attributes)
{
WebRequest request = (WebRequest)attributes.getRequest();
Date ifModifiedSince = request.getIfModifiedSinceHeader();
Date lastModified = getLastModified();
if (ifModifiedSince != null && lastModified != null)
{
// [Last-Modified] headers have a maximum precision of one second