[Catalyst-commits] r10103 - in Catalyst-Plugin-Static-Simple/trunk:
. lib/Catalyst/Plugin/Static
kane at dev.catalyst.perl.org
kane at dev.catalyst.perl.org
Wed May 13 08:46:10 GMT 2009
Author: kane
Date: 2009-05-13 08:46:09 +0000 (Wed, 13 May 2009)
New Revision: 10103
Modified:
Catalyst-Plugin-Static-Simple/trunk/
Catalyst-Plugin-Static-Simple/trunk/lib/Catalyst/Plugin/Static/Simple.pm
Log:
r8155 at myriad-wifi: kane | 2009-05-13 10:46:03 +0200
* make it clear your application must generate a 404 or a file if static::simple can't find the file requested
Property changes on: Catalyst-Plugin-Static-Simple/trunk
___________________________________________________________________
Name: svk:merge
+ 8a9521aa-ff93-41d6-9f87-b05cafcdab40:/local/cat/Catalyst-Plugin-Static-Simple:8155
Modified: Catalyst-Plugin-Static-Simple/trunk/lib/Catalyst/Plugin/Static/Simple.pm
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/lib/Catalyst/Plugin/Static/Simple.pm 2009-05-12 22:12:00 UTC (rev 10102)
+++ Catalyst-Plugin-Static-Simple/trunk/lib/Catalyst/Plugin/Static/Simple.pm 2009-05-13 08:46:09 UTC (rev 10103)
@@ -300,6 +300,18 @@
Note that actions mapped to paths using periods (.) will still operate
properly.
+If the plugin can not find the file, the request is dispatched to your
+application instead. This means you are responsible for generating a
+C<404> error if your applicaton can not process the request:
+
+ # handled by static::simple, not dispatched to your application
+ /images/exists.png
+
+ # static::simple will not find the file and let your application
+ # handle the request. You are responsible for generating a file
+ # or returning a 404 error
+ /images/does_not_exist.png
+
Though Static::Simple is designed to work out-of-the-box, you can tweak
the operation by adding various configuration options. In a production
environment, you will probably want to use your webserver to deliver
More information about the Catalyst-commits
mailing list