Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 544603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:40:19+00:00 2026-05-13T10:40:19+00:00

I’ve got an app written with Struts/Tiles/JSP that I’m adding a GWT app to.

  • 0

I’ve got an app written with Struts/Tiles/JSP that I’m adding a GWT app to. The non-GWT portion of my app handles css caching by actually writing out the css file with a version number taken from my svn repository attached, like this “styles.css?svnbuild=12345”. That way I can tell the browser to cache those css files forever and when I deploy a new version all my users download it immediately.

Now I’m moving on to the GWT app and I love how it uses “longmd5sum.cache.css” as the filename so I can still tell the browser to cache it forever. The problem is that the css files associated with my theme, like “gwt-standard.css”, don’t have a strong name and don’t have my svnbuild parameter attached. Whenever I deploy a new version of my app, users are still seeing the old version of the css which makes it look wrong.

Has anyone figured out a best practice for handling caching of gwt theme css files? Is there a way I can append an svnbuild parameter or something similar when appending the css to the document?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:40:19+00:00Added an answer on May 13, 2026 at 10:40 am

    Ok. So after I posted this I dug into the GWT source code and found some links about creating a GWT custom linker.

    http://development.lombardi.com/?p=29

    http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html

    Here’s how I solved it with my own linker. First I made a linker class that extends the standard IFrameLinker:

    @LinkerOrder(LinkerOrder.Order.PRIMARY)
    public class MyLinker extends IFrameLinker {
        protected String generateStylesheetInjector(String stylesheetUrl) {
            stylesheetUrl = stylesheetUrl + "?buildtime=" + System.currentTimeMillis();
            return super.generateStylesheetInjector(stylesheetUrl);
        }
    }
    

    After that it’s just a matter of telling your module to use your custom linker. In your module.gwt.xml file:

    <module>
        <define-linker name="mylinker" class="com.company.gwt.core.linker.MyLinker" />
        <add-linker name="mylinker" />
    </module>
    

    Just tried it out and now in my nocache.js file it outputs a new timestamp every time I compile. My users can cache the css file forever and they will download a new one automatically whenever I deploy a new version of the app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
i got an object with contents of html markup in it, for example: string
I have a JSP page retrieving data and when single or double quotes are
link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.