In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000040 [In-Portal CMS] Admin Interfaces bug report always 2009-06-03 04:41 2011-12-02 04:56
Reporter alex View Status public Project Name In-Portal CMS
Assigned To Dmitry Developer
Priority normal Resolution no change required Fixed in Version 5.1.0
Status closed Product Version 5.1.0 Target Version Icebox
Time EstimateNo estimate
Summary 0000040: Issues with JavaScript and CSS Caching
Description When script.js or any other script or css file is changed, then it's name stays the same and browser doesn't query it's new contents from server again. This could be a problem, especially, because user's need to clear browser cache before doing anything.

I propose to add new configuration variable named "ScriptVersion". It could be number or timestamp, doesn't really matter. We don't show it to user in admin (can change in db directly) and add to any script/css include in admin templates, like:

<script src="js/script.js?<inp2:m_GetConfig name="ScriptVersion"/>" .../>
<script src="inc/style.js?<inp2:m_GetConfig name="ScriptVersion"/>" .../>

When we change something in js/css then we change this variable value in db (and in upgrade script). This way when js/css is changed, then url also will be changed and browser will be forced to reread content from webserver.
Additional Information
Tags No tags attached.
Change Log Message
Estimate Points 0
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of 0000457closed (5.1.0)!COMMUNITY Automatic CSS / JS Compression 
related to 0001167closed (5.2.0)alex Improvements in Compressed CSS/JS File Naming 

-  Notes
User avatar (0000027)
Dmitry (manager)
2009-06-06 23:06

I believe timestamp makes more siense to use in this case.

By the way, do you know how is this solved in JQuery? I think they have some Caching reset mechanisms...
User avatar (0000030)
alex (manager)
2009-06-07 03:15

They have option to prevent ajax responses to be cached in Internet Explorer. It's not our case at all. We face problem, that updated javascript/css versions are not queried from server.
User avatar (0000031)
Dmitry (manager)
2009-06-07 12:37

Ok, let's put this in improvement in Future release and will decide on specific version shortly.
User avatar (0002759)
alex (manager)
2010-08-31 14:24

Closing, since already implemented in other way in related task.

- Issue History
Date Modified Username Field Change
2011-12-02 04:56 alex Relationship replaced duplicate of 0000457
2011-11-13 17:09 Dmitry Relationship added related to 0001167
2010-08-31 14:24 alex Resolution open => no change required
2010-08-31 14:24 alex Fixed in Version => 5.1.0
2010-08-31 14:24 alex Note Added: 0002759
2010-08-31 14:24 alex Status needs work => closed
2010-08-31 14:23 alex version => 5.1.0
2010-08-31 14:23 alex Relationship added related to 0000457
2009-11-12 10:26 alex Reference =>
2009-11-12 10:26 alex Status active => needs work
2009-10-03 07:54 administrator Status needs work => active
2009-06-07 12:37 Dmitry Target Version 5.1.0 => Icebox
2009-06-07 12:37 Dmitry Note Added: 0000031
2009-06-07 06:38 alex Reproducibility @70@ => always
2009-06-07 03:15 alex Note Added: 0000030
2009-06-07 03:15 alex Assigned To alex => Dmitry
2009-06-07 03:15 alex Status needs feedback => needs work
2009-06-06 23:10 Dmitry Target Version => 5.1.0
2009-06-06 23:07 Dmitry Assigned To => alex
2009-06-06 23:07 Dmitry Status active => needs feedback
2009-06-06 23:06 Dmitry Note Added: 0000027
2009-06-06 23:04 Dmitry Summary Script and css caching issues => Issues with JavaScript and CSS Caching
2009-06-03 04:41 alex New Issue

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker