You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Grzegorz TaƄczyk <go...@polzone.pl> on 2004/10/22 00:25:14 UTC

ImageReader blows http headers

Hello users,

  Please take a look at those to matches:
      <map:match pattern="b/*.jpg">
        <map:read type="dbreader" src="{1}" mime-type="image/jpeg">
          <map:parameter name="table" value="images" />
          <map:parameter name="last-modified" value="img_timestamp"/>          
          <map:parameter name="image" value="img_data" />
          <map:parameter name="key" value="id" />
          <map:parameter name="expires" value="86400"/>
        </map:read>
      </map:match>   
     <map:match type="regexp" pattern="idb/(\d*).jpg">
        <map:read type="image" src="cocoon:/db/{1}.jpg" mime-type="image/jpeg">
          <map:parameter name="width" value="100" />
        </map:read>
      </map:match>

  On Cocoon 2.1.6dev last-modified http header exists if I call
  "db/..", but when I request "idb/.." last-modified(and expires also) is discarded by
  ImageReader/ResourceReader. On 2.1.5.1 there is no problem with
  this, both headers are present.

  How to fix it?

  Thanks for any help.

-- 
Best regards,
 Grzegorz                          mailto:goliatus@polzone.pl


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org