Skip to content

Web site should be transferring data compressed #12597

Closed

Description

@huonw

Our search doc indexes are huge JS files, which are very amenable to compression.

We're failing pagespeed because of it: http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fstatic.rust-lang.org%2Fdoc%2Fmaster%2Fstd%2Findex.html

Activity

  1. lifthrasiir commented on Feb 27, 2014

    @lifthrasiir
    Contributor

    Some quick comparison:

    $ curl -s http://static.rust-lang.org/doc/master/std/search-index.js | wc -c
    501867
    $ curl -s http://static.rust-lang.org/doc/master/std/search-index.js | gzip -c -9 - | wc -c
    84310
    

    We can also consider adjusting the index format to exploit deflate/LZ77 algorithms if we want to optimize that further. (Unlikely, but just a possibility)

  2. huonw commented on Feb 27, 2014

    @huonw
    ContributorAuthor

    It appears that gzipping manually may be the only way to do this: http://stackoverflow.com/a/5447158/1256624

    :(

  3. thestinger commented on Feb 27, 2014

    @thestinger
    Contributor
  4. ehsanul commented on Mar 18, 2014

    @ehsanul
    Contributor

    Doesn't seem like rust-lang.org is using cloudfront, but rather just hosts on S3? In which case, that may not work.

    The best solution might be the answer further down, since it won't break on safari and mobile browsers and such.

  5. alexcrichton commented on May 22, 2014

    @alexcrichton
    Member

    Closing, this is now done through the new official domain, http://doc.rust-lang.org/

  6. added a commit that references this issue on Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions