Lasso Soft Inc. > Home

[Content_Expires]

LinkContent_Expires
AuthorDaniel Logue
CategoryTechnical
Version8.5.x
LicensePublic Domain
Posted28 Sep 2007
Updated28 Sep 2007
More by this author...

Description

This tag modifies the content headers with an appropriately formatted date/time string for the page to expire, based on 1 date/time parameter.

Sample Usage

[

Content_Expires:(Date_Add:date,-Minutes=15);

]

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

[

Define_Tag:'Content_Expires',
-Required='date';

   Local:'expires'=(Date_LocalToGMT:#date);

   Content_Header+='Expires: '#expires->(Format:'%a')', '#expires->(Format:'%d')' '#expires->(Format:'%b')' '#expires->(Format:'%Y')' '#expires->(Format:'%T')' GMT\r\n';
   
/Define_Tag;

]

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft