[Building Sakai] Loading PDFs in Chrome

Sam Ottenhoff ottenhoff at longsight.com
Thu Dec 11 09:21:04 PST 2014


Here is a JIRA: https://jira.sakaiproject.org/browse/KNL-1314

So my question: how long do we want the browser to cache a resource?  Zero
seconds?  60 seconds?  An hour?

It does seem like a Chrome bug.  If we don't send any caching-related
headers, shouldn't Chrome assume no caching?  I just attached a patch to
our JIRA.

On Thu, Dec 11, 2014 at 11:58 AM, Juan Arcadio Martínez Cárceles <
juanarcadio at um.es> wrote:

> Hi Matthew,
>
> In Sakai, it fails when the PDF is bigger enough and the request get a
> "206 Partial Content" response.
> I thought that it was a Google Chrome cache issue because of the success
> of disabling cache.
>
> https://code.google.com/p/chromium/issues/detail?id=437738
>
>
>
> El 11/12/2014 17:36, Matthew Buckett escribió:
> > We've recently started seeing a problem with Google Chrome not
> > displaying PDFs correctly. The first time you load a PDF it will
> > display correctly, if you then refresh the browser it will display an
> > error saying "Failed to load PDF Document". I've uploaded an example
> > to:
> >
> > https://qa10.longsight.com/access/content/public/Google.pdf
> >
> > which exhibits this problem. Uploading to a non Sakai webserver
> > results in the file working correctly:
> >
> > http://users.ox.ac.uk/~buckett/Google.pdf
> >
> > If you open developer tools and disable the cache then it loads
> > correctly every time. I'm running Chrome 39 and it also happens on
> > Chrome Canary 41. I found an old copy of Chrome 37 in a VM and
> > everything works correctly there between reloads. My guess is that
> > Chrome 38 was also OK, but I don't have a copy to test with.
> >
> > One difference between the two webservers is that the working one
> > generates ETags which Chrome uses when it loads the page a second
> > time. Anyone got any ideas?
> >
>
>
> --
> Juan Arcadio Martínez Cárceles
> Empresa FVH Consultores, S.L. en cliente ÁTICA-Universidad de Murcia
> Correo electrónico: juanarcadio at um.es
> Teléfono: 868 88 71 44
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141211/e0014fa9/attachment.html 


More information about the sakai-dev mailing list