The after_file_render capture after_file_render triggered after each successful request for a static file (for example, a CSS file or image), and the after hook is triggered after the action is executed by the route handler.
If you want to run the same code for after and after_file_render , you can put it in a subroutine and assign it to two hooks using a link, for example:
sub foo { ... } hook after_file_render => \&foo; hook after => \&foo;
source share