Closed Bug 1235420 Opened 9 years ago Closed 9 years ago

very short Cache-Control headers on video files

Categories

(Websites Graveyard :: getfirebug.com, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nmaul, Assigned: Honza)

References

()

Details

Hi Honza (et al),

We had some trouble with our generic cluster today, and discovered a couple large(-ish) files on getfirebug.com that were sending a max-age=1 header:

https://getfirebug.com/video/Intro2FB.ogv
https://getfirebug.com/video/Intro2FB.mp4

The header is set in the .htaccess file... these MIME types aren't specified, so they get the default of 1s.

These are 13MB each on the filesystem, and during our troubles today the former received around 2200 hits per hour. Many of these were to China, and were (we think) exceptionally slow, and tied up server resources because the files weren't being cached on our load balancers.

At the moment we've implemented a temporary rule on our load balancers to allow these files to be cached, so if you fetch them right now you'll see max-age=3600.

Would you be able to add something like this to your .htaccess file? (exact values copied from your existing settings for images, feel free to tweak)

  ExpiresByType application/ogg "access plus 2592000 seconds"
  ExpiresByType video/mp4 "access plus 2592000 seconds"

Once that's done we'll remove the rule on our end so it can take effect properly.

Thanks!
Flags: needinfo?(odvarko)
(In reply to Jake Maul [:jakem] from comment #0)
> Hi Honza (et al),
> Would you be able to add something like this to your .htaccess file? (exact
> values copied from your existing settings for images, feel free to tweak)
> 
>   ExpiresByType application/ogg "access plus 2592000 seconds"
>   ExpiresByType video/mp4 "access plus 2592000 seconds"
Done (at revision 149971)

Here is the modified file in the repo:
https://svn.mozilla.org/projects/getfirebug.com/tags/production/.htaccess

It might take some time till it's propagated to the site since the
automated sync is currently broken (see bug 1227926).

Honza
Assignee: nobody → odvarko
Depends on: 1227926
Flags: needinfo?(odvarko)
Bug 1227926 has been fixed, so this should also work now.
@Jake, can you please verify?

Honza
Flags: needinfo?(nmaul)
Looks good! Thank you!
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(nmaul)
Resolution: --- → FIXED
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.