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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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, > > NickmenowSorry I forgot the example => .js?1168472848 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 6/20/07, NICKMENOW <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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?1168472848That''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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bob Showalter wrote:> On 6/20/07, NICKMENOW <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
NICKMENOW
2007-Jun-20 14:34 UTC
Re: Remove session string from css and js file? - Asset TS
Thank you to Bob Showalter. 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---