QutEcoacoustics / baw-server

The acoustic workbench server for storing and managing ecoacoustic data. Manages the structure and audio data. Provides an API for clients access.
Apache License 2.0
9 stars 4 forks source link

Disable caching headers for all API requests #81

Open atruskie opened 10 years ago

cofiem commented 10 years ago

What's the reasoning behind this one?

atruskie commented 10 years ago

On navigating back from the main site to the angular app, Chrome would pull content from it's cache.

Apparently Chrome in particular likes to ignore most cache headers including accept type. So instead of JSON I got HTML. We haven't seen this before because most API routes are actually different from the others (because they are flattened). Projects was the exception.

So for that bug and generally I also don't think API's should be blanket cached...

Also adding cache header for varies-by: Accept or similar should be added to everything else.

cofiem commented 10 years ago

Long story short: wow, this is messed up. Some links for reference:

cofiem commented 10 years ago

This requires more research and a better idea of the pros/cons.

cofiem commented 9 years ago

Possibly related to or could be fulfilled by #162