Load CSS and JS without ?variable

OXID Loads CSS and JS with ?1398348443 at the end. How can I load my scripts and stylesheets without these numbers at the end.

e.g:

http://www.example.de/out/azure/src/css/stylesheet.css?1417431655
http://www.example.de/out/azure/src/js/jquery.js?1417431655

as simple:

http://www.example.de/out/azure/src/css/stylesheet.css
http://www.example.de/out/azure/src/js/jquery.js

Thanks!

why do you want this?

I highly suspect these variables at the end, messing the browser-caching of my shops. Google’s Page Speedtest also repeatedly gives warnings on multiple pages and shops.

Hi,

search in <yourshopdirectory>/core/smarty/plugins/function.oxscript.php for


            if ($sScript && count($aScript) > 1) {
                // Append query part if still needed #3305.
                $sScript .= '?'.$aScript[1];
            } elseif ($sSPath = $myConfig->getResourcePath($sOriginalScript, $myConfig->isAdmin())) {
                // Append file modification timestamp #3725.
                $sScript .= '?'.filemtime($sSPath);
            }
        }

and change the following line as shown below


               // $sScript .= '?'.filemtime($sSPath);

Also this is not recommended, as changes to your files may not be recognised by the browsers/proxies and may result in an undefined behaviour.

you may think about a better way to get guaranteed that new versions will be
taken, e.g. by rewriting the url …

best regards
marcel