[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] html2pdf
From: "Jonathan Hobbs" <toolkit () magma ! ca>
Date: 2004-06-30 11:06:32
Message-ID: 001301c45e92$4cfcf960$647ba8c0 () jhdesktop
[Download RAW message or body]
From: "trashMan" <trashman@httconsulting.com>
> I've a big problem with html2pdf.
> I've a zpt with an image "myimage.jpg". The content of "myimage.jpg"
changes
> every time.
> When i call the script html2pdf on the page the pdf is generated correctly
> but....if i recall subsequently the page I have always the first
> "myimage.jpg".
> It seems the image "myimage.jpg" is cached (i don't know where! I haven't
> set anything about cache).
> how can I resolve this problem?
To make sure you are not storing a version in the browser cache use the ctrl
+ F5 (IE, I don't know what the NN equivalent is) to reload the page. ctrl
+ F5 will cause the browser to request a version of the page from the server
(not serve up the page from the browser cache - which is done if the
timing/caching paramaters in the page header indicate that the page has not
expired).
You can also try embedding timing/caching parameters in the page header:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-ca">
<meta http-equiv="expires" content="Sat, 01 Jan 2001 00:00:00 GMT">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
</head>
HTH
Jonathan
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic