Method: ScribdFu.strip_cache_string

Defined in:
lib/scribd_fu.rb

.strip_cache_string(url) ⇒ Object

Strip off any trailing “?1234567890” cache strings They cause headaches on Scribd’s end.



114
115
116
117
# File 'lib/scribd_fu.rb', line 114

def strip_cache_string(url)
  pos = url.rindex('?')
  (pos) ? url[0, pos] : url
end