ABCPdf.net caching problem solved

We’ve been using WebSupergoo’s ABCPdf.net component in a few projects for a while, it’s quite easy to work with and cheaper than pdflib. Plus, ABCPdf.net offers a method called AddImageUrl, which writes the content of a specified url into a PDF file.

Unfortunately, there’s a big caching issue: the site content of a given url is being cached and this cache seems not to be refreshing, even if you disable caching at all. But there’s a very easy work-around for that, just append a GUID as a dummy parameter to the url string. So, instead of calling

AddImageUrl("http://blog.bitshifter.ch");

try the following

AddImageUrl("http://blog.bitshifter.ch?dummy=" + System.Guid.NewGuid().ToString());

This will do the trick!

Advertisements
ABCPdf.net caching problem solved

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s