Change
Make static resources cacheable
Issue description
Some resources in Topincs change not very often, practically they only change on an update. For these resources incorporate the Topincs version number in the resource name and add a high Cache-Control: max-age or Expires in the response. Resources that are affected:
* css
* images
* javascript
Developer comments
CSS, images and JavaScript resources are now put into a directory specific to the Topincs version under docroot. All resources in directories starting with a number are set via apache configuration to send no etag and a far in the future expires header. This change made it necessary to incorporate a mechanism into the update script which allows to recreate the httpd configuration of a Topincs installation.
This change also makes it necessary to include the mod_headers module in Apache.
Added .core-topics to this versioned directory. It is requested on every request, but can only change on updates of the Topincs server.
This change makes it necessary to do the following steps after upgrading an installation to a new version:
* run update to recreate the http.conf
* restart apacheotherwise the recreated http.conf is not read.
Hmm. Not optimal.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.