View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003725 | OXID eShop (all versions) | 3.1. Design, GUI, UX | public | 2012-03-14 23:52 | 2012-11-27 22:04 |
Reporter | marco_steinhaeuser | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.8 revision 42471 | ||||
Fixed in Version | 4.6.6 revision 54646 | ||||
Summary | 0003725: Auto-Update Style (CSS) Sheets | ||||
Description | If you've done enough style sheet work, you'll now that eventually you'll run across a situation where updating the CSS can really make a mess of your website for other users/visitors. This is because other browsers will likely have a cached value of your OLD css, so all the changes you make to your design will incorrectly use this old css and possibly muck up the layout of your site pretty badly. To avoid this, some code should be added to force all browsers to re-cache upon a file change. This is standard in some other e-commerce platforms but, regrettably, missing in OXID. If you'd like to add this functionality, make the following change: Open file ./core/smarty/plugins/function.oxstyle.php Replace $sStyle = $myConfig->getResourceUrl($sStyle); with // BEGIN MOD: adding timestamp as query string to force browser reload on changes $sStyle = $myConfig->getResourceUrl($sStyle) . '?' . filemtime($myConfig->getResourcePath($sStyle)); // END MOD I hope the OXID guys will eventually make something like this standard. I've heard this fix may not work on some obscure browsers, but I've also never seen a better fix. | ||||
Additional Information | http://www.oxid-esales.com/forum/showthread.php?t=13732 | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0003305 | resolved | alfonsas_cirtautas | oxstyle then file dont exits or contains question mark fills array with empty record |