The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Response NotModified - View plugin to return a 304 Response

SYNOPSIS

        my $response = $mungo->getResponse();

DESCRIPTION

This view plugin is automatically used by CGI::Mungo::Response when the request Etag matches the current request, eg, the client has a copy of the page already.

METHODS

new($mungo)

Constructor, sets the HTTP response code to 304

display()

        $response->display();

This method is called automatically at the end of an action.

Just displays the HTTP headers as no body is needed for a 304 response.

Author

MacGyveR <dumb@cpan.org>

Development questions, bug reports, and patches are welcome to the above address

Copyright

Copyright (c) 2013 MacGyveR. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.