[Building Sakai] http expiration

Charles Hedrick hedrick at rutgers.edu
Thu Aug 28 12:07:06 PDT 2014


library, portal and calendar use a filter to set max-age to a month. Other tools don’t do anything, which results in a random but long time.

Every time we update sakai we have a period of weeks when people’s results are broken because of our of data Javascript.

I think a month is too long. With modern browsers when the cache expires they just check. They won’t fetch the file if it hasn’t changed. I think a day makes more sense. Furthemore, it has to apply to .js files in the tools, not just library.

I propose using the tomcat or java expires filter to set a one-day expiration for all files of type javascript.



More information about the sakai-dev mailing list