Fixed caching for PDF