Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Sep 13, 2015
2 parents b41681f + 59d55bd commit 85fa265
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
41 changes: 38 additions & 3 deletions cache/projectTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,17 @@ Method returns user application CSS.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
#define CompileTime ##Expression("""" _ $zd($h, 11) _ ", "_ $zdt($NOW(0), 2,1) _ " GMT""")
set %response.CharSet = "utf-8"
set %response.ContentType = "text/css"
do ##class(StaticContent).Write("CSS")
do %response.SetHeader("Last-Modified", $$$CompileTime)
if %request.GetCgiEnv("HTTP_IF_MODIFIED_SINCE")=$$$CompileTime {
do ..Http304()
} else {
do ##class(StaticContent).Write("CSS")
}
return $$$OK
]]></Implementation>
</Method>
Expand All @@ -447,9 +455,17 @@ Method returns user application JavaScript.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
#define CompileTime ##Expression("""" _ $zd($h, 11) _ ", "_ $zdt($NOW(0), 2,1) _ " GMT""")
set %response.CharSet = "utf-8"
set %response.ContentType = "text/javascript"
do ##class(StaticContent).Write("JS")
do %response.SetHeader("Last-Modified", $$$CompileTime)
if %request.GetCgiEnv("HTTP_IF_MODIFIED_SINCE")=$$$CompileTime {
do ..Http304()
} else {
do ##class(StaticContent).Write("JS")
}
return $$$OK
]]></Implementation>
</Method>
Expand All @@ -460,10 +476,29 @@ Method returns user application HTML.</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
do ##class(StaticContent).Write("HTML")
#define CompileTime ##Expression("""" _ $zd($h, 11) _ ", "_ $zdt($NOW(0), 2,1) _ " GMT""")
do %response.SetHeader("Last-Modified", $$$CompileTime)
if %request.GetCgiEnv("HTTP_IF_MODIFIED_SINCE")=$$$CompileTime {
do ..Http304()
} else {
do ##class(StaticContent).Write("HTML")
}
return $$$OK
]]></Implementation>
</Method>

<Method name="Http304">
<Description>
Issue an "304 Not Modified" status</Description>
<ClassMethod>1</ClassMethod>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
Set %response.Status="304 Not Modified"
Quit $$$OK
]]></Implementation>
</Method>
</Class>


Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "CacheUMLExplorer",
<<<<<<< HEAD
"version": "1.0.0",
=======
"version": "0.15.1",
>>>>>>> 59d55bd711e05c45ac628bff99372683be3b7378
"description": "An UML Class explorer for InterSystems Caché",
"directories": {
"test": "test"
Expand Down

0 comments on commit 85fa265

Please sign in to comment.