private function setModifiedSince(Request $request, Item $item)
    {
        if ($modifiedAt = $item->getCreation()) {
            $modifiedAt->setTimezone(new DateTimeZone('GMT'));

            $date = sprintf('%s GMT', $modifiedAt->format('l, d-M-y H:i:s'));

            $request->addHeader('If-Modified-Since', $date);
        }
    }
private function setModifiedSince(Request $request, Item $item)
    {
        if ($modifiedAt = $item->getCreation()) {
            $modifiedAt->setTimezone(new DateTimeZone('GMT'));

            $date = sprintf('%s GMT', $modifiedAt->format('l, d-M-y H:i:s'));

            $request->addHeader('If-Modified-Since', $date);
        }
    }
private function setModifiedSince ( Request $ request , Item $ item ) { if ( $ modifiedAt = $ item -> getCreation ( ) ) { $ modifiedAt -> setTimezone ( new DateTimeZone ( 'GMT' ) ) ; $ date = sprintf ( '%s GMT' , $ modifiedAt -> format ( 'l, d-M-y H:i:s' ) ) ; $ request -> addHeader ( 'If-Modified-Since' , $ date ) ; } }
Sets If-Modified-Since header if creation time is available

@param Request $request
@param Item    $item
Sets If - Modified - Since header if creation time is available