Anonymous | Login | Signup for a new account | 2024-04-19 02:27 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Relationship Graph | [ View Issue ] [ Dependency Graph ] | |||
|
||||
|
Viewing Issue Simple Details | |||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update |
0001167 | [In-Portal CMS] Optimization | task | always | 2011-11-13 17:07 | 2012-07-25 05:30 |
Reporter | Dmitry | View Status | public | ||
Assigned To | alex | ||||
Priority | normal | Resolution | fixed | ||
Status | closed | ||||
Summary | 0001167: Improvements in Compressed CSS/JS File Naming | ||||
Description |
Starting with 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. While feature works well in general there is a problem though: old versions of compressed files are never deleted. Currently filename is generated by following scheme: <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. |
||||
Additional Information |
NOTES: 1. please add ability to pass param "save_as='somename'" so it can be more readble name if needed. 2. ts=544433445 should be replaced with real date/time so it's easy to see if file is new or outdated. Example: http://www.website.tld/system/cache/c_generalstyles.css?ts=2011-12-02_12:21:12 where 20111202 is date stamp and is 122112 time stamp (15hours-21min-12sec). |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |