content management system - Opencart, Javascript file common,js uneditable? -
i running on version 1.5.5.1 of opencart, , odd reasons, if try change common.js
file located in (/catalog/view/javascript/common.js)
, never taken in consideration or code burnt down if never existed. tried renaming file, name stayed same, browser kept on loading old file doesnt exist anymore on server xd
(and opened fresh new browser test that, dont have in cache or whatever else).
so wondering if know problem and/or solve !
thanks in advance
it depends on how server set , if it's setting far future expires files javascript, css etc.
i don't know xd servers, under apache run complex .htaccess rule set caches everything, it's based on .htaccess file included html5 boilerplate
not knowing browser you're using, 1 thing question stands out opening new window isn't going clear cache, need manually that.
i have problem , clearing cache takes care of it.
one way i've found os increment js , css files dynamically , edit number when make change. in .htaccess file you'll see section cache busting, may need adjust if you're not using apache.
# ------------------------------------------------------------------------------ # | filename-based cache busting | # ------------------------------------------------------------------------------ # if you're not using build process manage filename version revving, # might want consider enabling following directives route # requests such `/css/style.12345.css` `/css/style.css`. # understand why important , better idea `*.css?v231`, read: # http://stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring # <ifmodule mod_rewrite.c> # rewritecond %{request_filename} !-f # rewriterule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [l] # </ifmodule>
hope helps in way.
Comments
Post a Comment