These strange numbers following the ‘screen_css’ are not in the template so I wonder why they’re appearing?
I did change the name of the ‘my_css_template’ template group, but then changed it back again. I’m not sure if this issue happened before or after I did that so I’m just mentioning it for completeness in case it does make a difference or mess things up?
I just did a copy/paste and can’t replicate. If you paste just that code in an empty template- does the same thing happen? And- I can’t really imagine a browser adding anything like that- but what browser are you using and what build/version of EE?
I just copied and pasted it into a new template and still got a strange number after it, this time, ‘.v.1196855486’
It happens in Safari 3/Mac, IE7/PC, and Firefox 2/PC. I’m using EE build version 20071114.
Any other ideas to debug this? The CSS stylesheet displays fine otherwise, and I’ve just had confirmation fro my colleague that it was also showing this funny code BEFORE I changed the template group name and back again, so that was a red herring.
Good call, Cocaholic. It’s the only thing I spotted when googling that made sense. But- it shouldn’t be happening w/out them doing something. That’s why I’m hoping there’s an extension at play. It’s just odd.
I can confirm that putting the stylesheet link in a blank template still produced thie code, and that the issue was also happening yesterday when I had no extensions or plugins installed.
I’ve submitted a technical support case with our web host too, just in case there’s something strange going on on the server, but I suspect they’re going to come right back to me and say it’s a CMS issue and that they have nothing in place that would do this.
Any other ideas that I can try here? Or any other debugging methods to eliminate things?
That number is epoch time, or the number of seconds it’s been since Jan 1st 1970(the official beginning of time, as far as unix is concerned). The webserver itself doesn’t know how to write any files except the logs, therefore, something other than the webserver is writing these files with the timestamp on it. However, the webserver does run server side technology and php has functions for epoch time. I’d ask the cms support team to dig a little deeper to try and get to the bottom of this issue. Please let me know if there is more I can do.
Modified the {stylesheet=”“} tag to allow browser caching of CSS files and built in versioning of stylesheets
This allows the browser to have long caches for your CSS template. This helps the browser to see it as the same file, and it will not try to make a request to your server for the CSS file again until a new version is submitted in the Template Manager, which will update that link to include the new edit date. That forces the browser to see it as a new file, and retrieve it.
Now that I know it’s not a bug, I’m relieved. But is there a way of setting the link to the stylesheet so that this versioning does or doesn’t appear? Or is this now a standard feature for everyone who upgrades to 1.6.1?
This is a standard feature, and I can’t think of why you’d want to disable this, but ExpressionEngine will only add this information if you are linking to your stylesheets with the {stylesheet=} path variable.
To be honest, I can’t think of a solid reason either - except that I didn’t like the numbers ruining my lovely ‘clean’ CSS link! And it validates too, and I assume there are no browser compatibility issues, so all’s good!
During the development cycle this feature is a nuisance! I tend to use CODA now to edit templates from saved copies out of the EE templates. I find that editing the CSS outside of EE - the fresh CSS isn’t getting picked up and I have to go back into EE and edit in the template. Yes I know I could edit the CSS quite separately, but this causes a problem having a CSS outside of the templates.
I guess what I am asking here is - can this feature be turned off as an option somewhere?