thomshouse-escher / escher

Escher was a PHP MVC framework developed by Thom Stricklin from 2011-2013. Escher implemented a hybrid of Model2 MVC and PAC architectures and CMS concepts as well as plugins and configuration wizards. Development halted in 2013 in favor of Kohana and later Symfony, which closely aligned to the same design principles as Escher.
http://git.io/escher
4 stars 1 forks source link

Add a way to force reload cache on js and css files #28

Closed adetwiler closed 12 years ago

adetwiler commented 12 years ago

In addLink and addJS maybe have something similar to this: (the 2nd answer), or maybe you might have a better idea.

http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files

thomshouse commented 12 years ago

IMO this is an issue that is better dealt with at the server level with Apache (or w/e) cache and expiration headers.

Reason being, filemtime and other file stat functions are going to result in a disk read for every single request. This could be mitigated somewhat with some sort of memcache intermediate, but that would defeat the purpose of the intended functionality (to ensure an always-live file).

adetwiler commented 12 years ago

ok cool :) best to not use that much disk reads.

On Wed, Jan 4, 2012 at 9:40 PM, Thom Stricklin < reply@reply.github.com

wrote:

IMO this is an issue that is better dealt with at the server level with Apache (or w/e) cache and expiration headers.

Reason being, filemtime and other file stat functions are going to result in a disk read for every single request. This could be mitigated somewhat with some sort of memcache intermediate, but that would defeat the purpose of the intended functionality (to ensure an always-live file).


Reply to this email directly or view it on GitHub: https://github.com/thomshouse/escher/issues/28#issuecomment-3365572