RailsCasts Pro episodes are now free!

Learn more or hide this

Arif Jafer's Profile

GitHub User: zeronone

Site: www.arifjafer.com

Comments by Arif Jafer

Avatar

Oh because I had to process the files on the server-side.

They are some source-code files, uploaded by users, which are fetched by the server for doing syntax highlighting. You are right, I should find some way to do the syntax highlighting only once and store that version on S3; and just give the link to the user.

Avatar

Wow Hilarious :)

I had a basic question. How can I cache static files that users have uploaded? I am using CarrierWave to upload the files which are hosted on S3, but every time I fetch them, it takes a very long time.