Aeva caching headers

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Aeva caching headers
« on November 11th, 2011, 02:23 PM »
I'm not sure whether this is a bug or not, and I'll investigate properly later but wanted to record it for now.

Just had a case where a user uploaded a file to Aeva Media, I downloaded it, and subsequently (minutes later) the file was updated, but every time I hit the download, I was still getting the cached earlier download.

I'm not sure off hand what headers are sent but it seems we may have to use the cache control headers to validate the time of last update.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Aeva caching headers
« Reply #1, on November 11th, 2011, 03:06 PM »
Well that'll be taken into account with the upcoming filename rewrite where the time will be specified.

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Aeva caching headers
« Reply #2, on November 11th, 2011, 03:33 PM »
I am not sure if AeMe/SMG was treating filename header properly, I don't think it provided proper 304/Not modified if not modified along with E-Tag and file modified times.
The way it's meant to be

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Aeva caching headers
« Reply #3, on November 11th, 2011, 08:42 PM »
IIRC, originally you did it the wrong way and I didn't bother to check, and then you told me you'd noticed it was flawed so you fixed something etc etc... I don't know where we ended up in the end, but I remember I didn't spend a lot of time on this...