Sha256: 517b93f851958d552433b6111d193d70c0a36c76a627e7e0e10c767b4ab857a3

Contents?: true

Size: 1.11 KB

Versions: 45

Compression:

Stored size: 1.11 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>cacheControl (Rmobio::Utils)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File utils.rb, line 30</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cacheControl</span>(<span class="ruby-identifier">cacheStr</span>=<span class="ruby-value str">'priority=P3;max-age=604800'</span>)  
      <span class="ruby-identifier">headers</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;Cache-Control&quot;</span>);
      <span class="ruby-identifier">headers</span>[<span class="ruby-value str">&quot;Cache-Control&quot;</span>] = <span class="ruby-identifier">cacheStr</span>;   
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

45 entries across 13 versions & 1 rubygems

Version Path
rmobio-1.1.32 lib/rmobio/doc/classes/Rmobio/Utils.src/M000067.html
rmobio-1.1.32 lib/rmobio/doc/classes/Rmobio/Utils.src/M000183.html
rmobio-1.1.5 lib/rmobio/doc/classes/Rmobio/Utils.src/M000183.html
rmobio-1.1.32 lib/rmobio/doc/classes/Rmobio/Utils.src/M000056.html
rmobio-1.1.9 lib/rmobio/doc/classes/Rmobio/Utils.src/M000183.html