0

編碼問題,我可以部署到Heroku的成功,但如果我點擊我的的.css文件我得到這個的資產同步+ Rackspace公司

enter image description here

的Gemfile

gem "asset_sync" 
gem "fog" 

資產同步

AssetSync.configure do |config| 
    config.fog_provider = 'Rackspace' 
    config.rackspace_username = ENV['RACKSPACE_USERNAME'] 
    config.rackspace_api_key = ENV['RACKSPACE_API_KEY'] 

    # if you need to change rackspace_auth_url (e.g. if you need to use Rackspace London) 
    # config.rackspace_auth_url = "lon.auth.api.rackspacecloud.com" 
    config.fog_directory = ENV['FOG_DIRECTORY'] 

    # Invalidate a file on a cdn after uploading files 
    # config.cdn_distribution_id = "12345" 
    # config.invalidate = ['file1.js'] 

    # Increase upload performance by configuring your region 
    config.fog_region = 'ord' 
    # 
    # Don't delete files from the store 
    # config.existing_remote_files = "keep" 
    # 
    # Automatically replace files with their equivalent gzip compressed version 
    # config.gzip_compression = true 
    # 
    # Use the Rails generated 'manifest.yml' file to produce the list of files to 
    # upload instead of searching the assets directory. 
    # config.manifest = true 
    # 
    # Fail silently. Useful for environments such as Heroku 
    # config.fail_silently = true 
end 

請求頭

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 
Accept-Encoding:gzip,deflate,sdch 
Accept-Language:it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4 
Cache-Control:max-age=0 
Connection:keep-alive 
Host:0ed44d1e0dc7bd6cee17-9854060d787d231b778324765dcb56ab.r59.cf2.rackcdn.com 
If-Modified-Since:Wed, 27 Nov 2013 09:31:20 GMT 
If-None-Match:546453fdd97eb1e5a500aa49deeffcc7 
Referer:http://app.herokuapp.com/ 
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36 

響應頭

Cache-Control:public, max-age=258384 
Connection:keep-alive 
Content-Type:text/javascript 
Date:Wed, 27 Nov 2013 09:48:20 GMT 
ETag:546453fdd97eb1e5a500aa49deeffcc7 
Expires:Sat, 30 Nov 2013 09:34:44 GMT 
Last-Modified:Wed, 27 Nov 2013 09:31:20 GMT 
Vary:Accept-Encoding 

回答

1

解決。

正是這個在我的CSS

@charset "UTF-8"; 
+0

該怎麼解決這個問題對你的嗎?你能解釋更多嗎? –

相關問題