dev kumar
dev kumar

Reputation: 91

why Rails 4 production request every time image on heroku?

enter image description here

every time Rails 4 request for same image in production which break site performance .

in development mode if once image load then it not requesting and site performance is far than production

any solution to load file just 1 time and picke cache from it ?

Thanks.

Upvotes: 0

Views: 41

Answers (1)

zwippie
zwippie

Reputation: 15515

I see you are using Chrome and have the developer panel open.

Since your screenshot is showing 403 Not Modified codes, the browser knows that it should use the cached version of the image. But it doesn't.

My guess is that you have the option 'Disable cache (while DevTools is open)' checked.

With the developer bar open, click the wheel icon in the bottom right. This opens the developer options. Uncheck it or close the devtools to enable caching.

Upvotes: 1

Related Questions