[Socialtext-commits] SF.net SVN: socialtext: [991] branches/rug/lib/Socialtext
Brought to you by:
socialtextrocks
|
From: <pet...@us...> - 2007-01-30 06:47:37
|
Revision: 991
http://svn.sourceforge.net/socialtext/?rev=991&view=rev
Author: petdance
Date: 2007-01-29 22:47:36 -0800 (Mon, 29 Jan 2007)
Log Message:
-----------
Added description of no_cache
Modified Paths:
--------------
branches/rug/lib/Socialtext/MasonHandler.pm
branches/rug/lib/Socialtext/Rug.pm
Modified: branches/rug/lib/Socialtext/MasonHandler.pm
===================================================================
--- branches/rug/lib/Socialtext/MasonHandler.pm 2007-01-30 06:47:05 UTC (rev 990)
+++ branches/rug/lib/Socialtext/MasonHandler.pm 2007-01-30 06:47:36 UTC (rev 991)
@@ -6,7 +6,7 @@
use Socialtext::Rug::Constants qw( OK REDIRECT SERVER_ERROR );
use Socialtext::AppConfig;
-use Socialtext::Rug;
+use Socialtext::Rug ();
use Socialtext::WebApp;
use Socialtext::FillInFormBridge;
Modified: branches/rug/lib/Socialtext/Rug.pm
===================================================================
--- branches/rug/lib/Socialtext/Rug.pm 2007-01-30 06:47:05 UTC (rev 990)
+++ branches/rug/lib/Socialtext/Rug.pm 2007-01-30 06:47:36 UTC (rev 991)
@@ -188,6 +188,13 @@
Passing an argument will set the method, mainly used for internal
redirects.
+=head2 $rug->no_cache( $boolean )
+
+This is a flag that indicates that the data being returned is volatile
+and the client should be told not to cache it. C<< $rug->no_cache(1) >>
+adds the headers "Pragma: no-cache" and "Cache-control: no-cache" to
+the reponse, therefore it must be called before C<< $r->send_http_header >>.
+
=head2 $rug->note_basic_auth_failure()
Prior to requiring Basic authentication from the client, this method
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|