Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/6842ee5be2c2f594#

Since In-Portal 5.1.0 new feature was introduced. This feature allows to
merge all js/css files on the page into one file and then compress it. This
allows to significantly enhance website loading time.

There is one problem though: old versions of compressed files are never
deleted.

Currently filename is generated by following scheme:
<d
<d¦c>_<filenames_crc>_<timestamp>.<css¦js>

This way new file is created every time developer forces a recompression procedure by pressing "refresh" button in themes list in admin console.

I'm proposing to move timestamp part away from filename part into that file's url parameters. We actually could just use file modification time from file system instead of keeping it in 2 places, like now.

For example url "http://www.website.tld/system/cache/c_1253243_544433445.css" becomes "http://www.website.tld/system/cache/c_1253243.css?ts=544433445".

This way we always use the same file and just change it's url, so web browser would read it from server and not from it's cache.

Related Tasks

Jira Legacy
serverIn-Portal Issue Tracker
keyINP-948