Remove session string from css and js file?

How do you remove the session string from the css and js file?
I have already set the ApplicationController session :disabled => true

Any suggestions or a site that already has this solution?

Thank you,

Nickmenow

NICKMENOW wrote:

How do you remove the session string from the css and js file?
I have already set the ApplicationController session :disabled => true

Any suggestions or a site that already has this solution?

Thank you,

Nickmenow

Sorry I forgot the example => .js?1168472848

On 6/20/07, NICKMENOW [email protected] wrote:

Sorry I forgot the example => .js?1168472848

That’s not the session string; it’s the mtime for the javascript file.
There’s a pretty good writeup on this at http://hypsometry.com/blog/
(search for “on browser caching”).

Why do you want to remove it?

Thank you to Bob S…

Here is what I have found out. To turn off Tim Lucus’ plugin for Asset
Timestamping (Rails default since Rails 1.12.1 add this to your
root/config/environment.rd file

ENV[“RAILS_ASSET_ID”] = ‘’

Restart the server and reload the page.

Bob S. wrote:

On 6/20/07, NICKMENOW [email protected] wrote:

Sorry I forgot the example => .js?1168472848

That’s not the session string; it’s the mtime for the javascript file.
There’s a pretty good writeup on this at http://hypsometry.com/blog/
(search for “on browser caching”).

Why do you want to remove it?

Thank you for the reply…I’m going to go look at it now.

I need to remove it so I can eliminate various troubles I am having with
a “site grabber” program that I am using. The site grabber grabs the
site and puts all the static data into a set of HTML files that can be
used off line. Sales and the CEO are unable to use RoR. The prototypes
are static versions of applications anyway - no DB and no dynamic data.
I use RoR for many attractive qualities like the rapid development,
agile changes and MVC organization because the prototypes get changed so
often. Do you know of a GEM, plugin or anything else that will take a
RoR site and make it pure HTML files? Keeping file structure and
eliminating the need to see a file extension will be a bonus.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs