ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Changing URL for CSS templates > possible to change to fixed URL?

September 15, 2010 2:50pm

Subscribe [2]
  • #1 / Sep 15, 2010 2:50pm

    Stephan Tran

    7 posts

    Here’s a little inconvenience I’d like to resolve:

    When I have a CSS template, it’s served with a URL similar to

    href="http://www.domainname.com/index.php?css=site/layout.v.1283570523</code></pre> where the suffix after v. keeps changing
    
    However, I'm using the excellent CSSEdit to edit the CSS templates as files,which allows me to preview changes real-time, the only thing is that CSSEDIT uses a static name for the CSS stylesheet in order correctly live-preview the CSS you're editing. EE seems to change the number above if you refresh the page or navigate away. Obviously, I'd like to keep the revision system on top of it (I'm not even sure that's what the problem is, anyway).
    
    <b>My question:</b>
    Is there any way to have EE serve the CSS templates with a fixed URL such as:
    <pre><code>href="http://www.domainname.com/index.php?css=site/layout.v.fixednumber

    If this is not possible to resolve: are there clear performance advantages in using EE to serve the CSS instead of requesting the actual CSS files (I imagine yes for many reasons, but I thought I’d ask)
    I hope that was clear.

  • #2 / Sep 15, 2010 8:01pm

    Brandon Jones

    5500 posts

    Hi Stephan,

    I wouldn’t say there are clear performance advantages either way. For development, and even for production, it’s fine to statically link and serve your CSS files instead of serving them via EE especially if it helps your workflow. At production time you can then move your CSS back into an EE CSS template if you wish.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases